Dear Appeon:
Does PBL have an embedded function to find out the version of PBL being used by the app?
For example, if I had compiled my App using PBL 2017 R3, and in my logic I call: l_version= getPBLversion(),
then i will get l_version=2017R3
if I had compiled my App using PBL 2019 R2, then l_version= getPBLversion() will result in 2019R2
thank you in advance.
sasha
Roland is right. And you can refer to the link below for details:
https://docs.appeon.com/appeon_online_help/pb2019/powerscript_reference/ch10s215.html
With the code example below, it will display a message box that shows the major, minor, fixes version and the build number of PowerBuilder:
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,