Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

GetEnvironment – PB Docs 150 – PowerBuilder Library

GetEnvironment – PB Docs 150

GetEnvironment PowerScript function

Description

Gets information about the operating system, processor, and
screen display of the system.

Syntax

Argument

Description

environmentinfo

The name of the Environment object that
will hold the information about the environment

Return Values

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.

Examples

This script runs another PowerBuilder application
and uses the OSType property of the Environment object to determine
how to specify the path:

This example displays a message box that shows the
major, minor, and fixes versions and the build number of PowerBuilder:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x