Environment object
The Environment object is a system structure used to hold
information about the computing platform the PowerBuilder application is
running on. You populate the Environment object using the GetEnvironment
function.
The Environment object has no events.
For more information about the GetEnvironment function, see the section called “GetEnvironment” in PowerScript Reference.
Properties
|
Environment property |
Datatype |
Description |
|---|---|---|
|
CharSet |
CharSet (enumerated) |
The international character set used by
The values CharSetAnsiArabic! and |
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
CPUType |
CPUTypes (enumerated) |
The type of CPU. For a complete list of CPUTypes |
|
Language |
LanguageID (enumerated) |
Specifies the value of the language setting for the |
|
MachineCode |
Boolean |
Specifies whether the application executable is TRUE — FALSE — Executable is |
|
NumberOfColors |
LongLong |
Number of colors on the screen. |
|
OSFixesRevision |
Integer |
The maintenance version of the operating |
|
OSMajorRevision |
Integer |
The major version of the operating system. For |
|
OSMinorRevision |
Integer |
The point release of the operating system. For |
|
OSType |
OSTypes (enumerated) |
Operating system or environment. For a complete |
|
PBBuildNumber |
Integer |
The build number of this version of |
|
PBFixesRevision |
Integer |
The maintenance version of |
|
PBMajorRevision |
Integer |
The major version of PowerBuilder. |
|
PBMinorRevision |
Integer |
The point release of PowerBuilder. 0 indicates GA, |
|
PBType |
PBTypes (enumerated) |
Version of the PowerBuilder product. For a complete |
|
ProcessBitness |
Integer |
Identifies whether the application is a 32-bit or 32 — stands for 64 — stands for 64-bit |
|
RuntimePath |
String |
The installation location of PowerBuilder Runtime |
|
ScreenHeight |
Long |
Height of the screen in pixels. |
|
ScreenWidth |
Long |
Width of the screen in pixels. |
|
Win16 (obsolete) |
Boolean |
Indicates the type of the operating system in which TRUE — Executable is running under a 16-bit FALSE — Executable is running |
Functions
|
Environment function |
Datatype returned |
Description |
|---|---|---|
|
String |
Returns the name assigned to the |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Object |
Returns the type of the object. |