1. Aleš Vojáček
  2. PowerBuilder
  3. Wednesday, 1 September 2021 09:19 AM UTC

Hi,

I'm using this snipet to get info about runtime :

string ls_version
contextinformation lcx_key
GetContextService ( "ContextInformation", lcx_key)
lcx_key.GetVersionName ( ls_version )

But it returns 19.2.0

Im using PB 2019R3 and runtime 2703.

Is there some way to get version like 19.2.0.2703 ?

Thank you Ales

Accepted Answer
René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 1 September 2021 10:00 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Ales,

This example I found in PB help:

string ls_version
environment env
integer rtn

rtn = GetEnvironment(env)

IF rtn <> 1 THEN RETURN
ls_version = "Version: "+ string(env.pbmajorrevision)
ls_version += "." + string(env.pbminorrevision)
ls_version += "." + string(env.pbfixesrevision)
ls_version += " Build: " + string(env.pbbuildnumber)

MessageBox("PowerBuilder Version", ls_version)
 
 
Regards,
René
 
Comment
  1. Aleš Vojáček
  2. Wednesday, 1 September 2021 10:13 AM UTC
Thank you,

I tried to find something else then I'm using, but I'm not good at finding info in PB help as you,

Thank you.
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.