IApplicationClass.Instance

Syntax

Instance: IApplication;

Description

The Instance property returns available objects and methods of the supported platform.

Example

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

App: IApplication;

Glob: IApplicationGlobals;

Begin

App := WinApplication.Instance As IApplication;

Glob := App.Globals;

Glob.Add("Index", 123);

End Sub Button1OnClick;

After executing the example and pressing the button the Index variable that has the 123 value is added to the global variables list.

See also:

IApplicationClass