uf_get_pb_version() to report PowerBuilder's version

Share this topic:



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: 111
Joined: 19 Feb 2013, 20:33

Return to Tips and Tricks

Who is online

Users browsing this forum: No registered users and 1 guest


uf_get_pb_version() to report PowerBuilder's version

Share this topic:


If you think that this site is not too bad, please LIKE it in Facebook. Thanks!





cron
free counters

eXTReMe Tracker