The ContextInformation object provides information about an application's execution context, including current version information. Using this information, you can modify display characteristics and application behavior.
ContextInformation property |
Datatype |
Description |
---|---|---|
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control |
Handle |
Long |
Internal use only |
ContextInformation event |
Occurs |
---|---|
Constructor in PowerScript Reference |
Immediately before the Open event occurs in the window |
Destructor in PowerScript Reference |
Immediately after the Close event occurs in the window |
ContextInformation function |
Datatype returned |
Description |
---|---|---|
ClassName in PowerScript Reference |
String |
Returns the name assigned to the object. |
GetCompanyName in PowerScript Reference |
Integer |
Returns the company name for the current execution context. |
GetContextService in PowerScript Reference |
Integer |
Creates a reference to a context-specific instance of the specified service. |
GetFixesVersion in PowerScript Reference |
Integer |
Returns the fix level for the current PowerBuilder execution context. |
GetHostObject in PowerScript Reference |
Integer |
Provides a reference to the context's host object. |
GetMajorVersion in PowerScript Reference |
Integer |
Returns the major version for the current PowerBuilder execution context. |
GetMinorVersion in PowerScript Reference |
Integer |
Returns the minor version for the current PowerBuilder execution context. |
GetName in PowerScript Reference |
Integer |
Returns the name for the current execution context. |
GetParent in PowerScript Reference |
PowerObject |
Returns a reference to the name of the parent object. |
GetShortName in PowerScript Reference |
Integer |
Returns the short name for the current PowerBuilder execution context. |
GetVersionName in PowerScript Reference |
Integer |
Returns complete version information for the current PowerBuilder execution context. |
PostEvent in PowerScript Reference |
Boolean |
Adds an event to the end of the message queue for the object. |
TriggerEvent in PowerScript Reference |
Integer |
Triggers a specific event in the object and executes the script for the event. |
TypeOf in PowerScript Reference |
Object |
Returns the type of the object. |