Gets information about the operating system, processor, and screen display of the system.
Syntax
GetEnvironment ( environmentinfo )
Argument Description
environmentinfo The name of the Environment object that will hold the information about the environment
Return value
Integer. Returns 1 if it succeeds and -1 if an error occurs. If environmentinfo is NULL, GetEnvironment returns NULL.
Usage
In cross-platform development projects, you can call GetEnvironment in scripts and take actions based on the operating system. You can also find out the processor (Intel 386 or 486, 68000, and so on). The information also includes version numbers of the operating system and PowerBuilder.
You can call GetEnvironment to find out the number of colors supported by the system and the size of the screen. You can use the size information in a window's Open script to reset its X and Y properties.
CHOOSE CASE env.OSType
CASE aix!
path = "/export/home/pb_apps/analyze.exe"
CASE Windows!, WindowsNT!
path = "C:\PB_apps\analyze.exe"
CASE ELSE
RETURN
END CHOOSE
Run(path)
--------------------------------------------------------
For more informations see:
OnlineBook
Application technique
Part 7
General Techniques
Chapter 31
Building an Application for Multiple Platforms
--------------------------------------------------------
But I think that the operating system does not have any importance because Pcode (short for pseudocode = PBD) is an interpreted language that's supported on all PowerBuilder platforms. It's the same format that PowerBuilder uses in libraries (PBL files) to store individual objects in an executable state.
I am just not bothered about the PowerBuilder platforms... i am interested to know only the operating system which was used while developing the application.
And remember i do not have the .PBL files.... i only have PBDs and associated DLLs
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.