1. Pete Yankovich
  2. PowerBuilder
  3. Thursday, 18 July 2019 17:03 PM UTC

Can the environment object in PB 2017 R2 differentiate between Win 7 and Win 10.  All I see is windowsnt!

Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 18 July 2019 17:19 PM UTC
  2. PowerBuilder
  3. # 1

OSMajorVersion might do it.

Also check out this code example:

http://www.topwizprogramming.com/freecode_osversion.html

 

Comment
  1. Pete Yankovich
  2. Thursday, 18 July 2019 18:22 PM UTC
OSMajorRevision is an integer. Don't know what that might translate to. But, the osversion code seems to working good.
  1. Helpful
  1. Pete Yankovich
  2. Thursday, 18 July 2019 19:44 PM UTC
If PB exe is running on Citrix, the Citrix server OS is retrieved. Would there be a way to get user's local OS?

  1. Helpful
  1. Roland Smith
  2. Thursday, 18 July 2019 19:51 PM UTC
That would require using the WFAPI library from Citrix. Last time I used it was in 2008 so I'm not sure what the availability of that is.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.