1. Federico Villanustre
  2. PowerBuilder
  3. Friday, 3 August 2018 13:39 PM UTC

How can I get if the Windows where my application runs is 32 or 64 bits? (Como puedo obtener si el Windows donde corre mi aplicacion es de 32 o 64 bits)

Federico Villanustre Accepted Answer Pending Moderation
  1. Monday, 6 August 2018 21:38 PM UTC
  2. PowerBuilder
  3. # 1

Thanks Roland!!!!!

Your help was very useful. Thanks for your time. Regadars

 
Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 3 August 2018 14:31 PM UTC
  2. PowerBuilder
  3. # 2

Hi Frederico;

  If you just want to get the basic O/S information .. have a look at Roland's code: http://www.topwizprogramming.com/freecode_osversion.html

  If you want detailed information about your App ans its surroundings (native, web browser or mobile) ... then have a look at the STD framework ... for example:

Native:

 

Mobile:

 

HTH

Regards ... Chris

 

 

Comment
There are no comments made yet.
Clarence Chamorro Accepted Answer Pending Moderation
  1. Friday, 3 August 2018 14:12 PM UTC
  2. PowerBuilder
  3. # 3

Got this code from the PB Help.

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)


Comment
  1. Roland Smith
  2. Friday, 3 August 2018 19:01 PM UTC
In PB 12.6 and PB 2017 the environment object has a property ProcessBitness. It tells you if the program is 32 or 64 bit. The poster wants to know the bitness of Windows itself which can be gotten using my OSVersion object.
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Friday, 3 August 2018 14:11 PM UTC
  2. PowerBuilder
  3. # 4

This will give you all the info you need:

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

 

Comment
  1. Roland Smith
  2. Friday, 3 August 2018 14:13 PM UTC
The function of_getosbits will return 32 or 64.
  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.