by Ursego » 16 Apr 2013, 12:24
- Code: Select all
/**********************************************************************************************************************
Dscr: Returns the major version number of PowerBuilder, for example: "9" (not "9.0"!)
***********************************************************************************************************************
Ret: string
***********************************************************************************************************************
Developer: Michael Zuskin - http://linkedin.com/in/zuskin | http://code.intfast.ca/
**********************************************************************************************************************/
string ls_pb_version
int li_rc
environment lenv
li_rc = GetEnvironment(ref lenv)
if li_rc <> 1 then
MessageBox(this.ClassName() + ".uf_get_pb_version", "GetEnvironment() failed.", StopSign!)
return ""
end if
ls_pb_version = String(lenv.pbmajorrevision)
return ls_pb_version
//Some more fields which can be useful:
//lenv.pbminorrevision
//lenv.pbfixesrevision
//lenv.pbbuildnumber