Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8644001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:11:18+00:00 2026-06-12T12:11:18+00:00

How to determine if OS is 64 bit or 32bit in PowerBuilder? Is it

  • 0

How to determine if OS is 64 bit or 32bit in PowerBuilder?

Is it possible to obtain it using GetEnvironment?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:11:19+00:00Added an answer on June 12, 2026 at 12:11 pm

    GetEnvironment can give some info regarding the cpu via its CPUType property, 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 using GetContextService / GetContextKeywords and setting the environment variable as the queried context keyword:

    string ls_vals[], ls_val, ls_env = "ProgramFiles(x86)" /*name of the env variable to query*/
    ContextKeyword lcxk_base
    
    GetContextService("Keyword", lcxk_base)
    lcxk_base.GetContextKeywords(ls_env, ls_vals[])
    if upperbound(ls_vals[]) > 0 then
       ls_val = ls_vals[1]
    else
       ls_val = "*undefined*" //it is 32b
    end if
    
    messagebox ("architecture", ls_val)
    

    I would have advised at first to test for the PROCESSOR_ARCHITECTURE environment variable, that is AMD64 in the shell for a windows 64b, but it seems that a PB executable gets x86…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Perl, how can I determine whether my program is running on 32 bit
Possible Duplicate: How to determine whether a given Linux is 32 bit or 64
Is there a way to determine the JVM version (32-bit or 64-bit) in C#?
I try to determine the right most nth bit set if (value & (1
I'm trying to determine if the current system is 32 or 64 bit. And
What method would you use to determine if the the bit that represents 2^x
I am trying to determine if a phone is located in this polygon using
Here's my question. What is the best way to determine what bit architecture your
I'm looking for a reliable way to determine the Windows OS architecture (32-bit or
Is it possible to determine whether or not a given registry key is redirected?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.