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


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 ?

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)

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)
  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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.