uf_get_pb_version() to report PowerBuilder's version


Link to this posting

Postby Ursego » 16 Apr 2013, 12:24

Code: Select all
/*----------------------------------------------------------------------------------------------------------------------
Acc:   public
-----------------------------------------------------------------------------------------------------------------------
Dscr:   returns the major version number of PowerBuilder, for example: "9" (not "9.0"!)
------------------------------------------------------------------------------------------------------------------------
Ret:   PB version as string
----------------------------------------------------------------------------------------------------------------------*/
string      ls_pb_version
int         li_rc
environment   lenv

li_rc = GetEnvironment(ref lenv)
if li_rc <> 1 then return '<<<Error in n_util.uf_get_pb_version>>>'

ls_pb_version = String(lenv.pbmajorrevision)

return ls_pb_version

//Some more fields which can be useful:
//lenv.pbminorrevision
//lenv.pbfixesrevision
//lenv.pbbuildnumber
User avatar
Ursego
Site Admin
 
Posts: 113
Joined: 19 Feb 2013, 20:33

IF you want to ((lose weight) OR (have unbelievable (brain function AND mental clarity))) THEN click:




free counters

eXTReMe Tracker