ContextInformation object

The ContextInformation object provides information about an application’s execution context, including current version information as well as whether it’s running in the PowerBuilder execution environment as a window plug-in or as a window ActiveX. Using this information, you can modify display characteristics and application behavior.

Properties

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.

Events

ContextInformation event

Occurs

Constructor

Immediately before the Open event occurs in the window.

Destructor

Immediately after the Close event occurs in the window.

Functions

ContextInformation function

Datatype returned

Description

ClassName

String

Returns the name assigned to the object.

GetCompanyName

Integer

Returns the company name for the current execution context.

GetContextService

Integer

Creates a reference to a context-specific instance of the specified service.

GetFixesVersion

Integer

Returns the fix level for the current PowerBuilder execution context.

GetHostObject

Integer

Provides a reference to the context’s host object.

GetMajorVersion

Integer

Returns the major version for the current PowerBuilder execution context.

GetMinorVersion

Integer

Returns the minor version for the current PowerBuilder execution context.

GetName

Integer

Returns the name for the current execution context.

GetParent

PowerObject

Returns a reference to the name of the parent object.

GetShortName

Integer

Returns the short name for the current PowerBuilder execution context.

GetVersionName

Integer

Returns complete version information for the current PowerBuilder execution context.

PostEvent

Boolean

Adds an event to the end of the message queue for the object.

TriggerEvent

Integer

Triggers a specific event in the object and executes the script for the event.

TypeOf

Object

Returns the type of the object.