How to determine if OS is 64 bit or 32bit in PowerBuilder?
Is it possible to obtain it using GetEnvironment?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
GetEnvironmentcan give some info regarding the cpu via itsCPUTypeproperty, but it will only return the platform type (alpha, mips, pentium, …).You can test some remarkable value from the environment that is defined only on a 64b platform, like
ProgramFiles(x86)by usingGetContextService/GetContextKeywordsand setting the environment variable as the queried context keyword:I would have advised at first to test for the
PROCESSOR_ARCHITECTUREenvironment variable, that isAMD64in the shell for a windows 64b, but it seems that a PB executable getsx86…