IWinApplicationClass.Instance

Syntax

Instance: IWinApplication;

Description

The Instance property returns the object that is used to work with the started application.

Example

Sub UserProc;
Var
    WinApp: IWinApplication;
Begin
    WinApp := WinApplication.Instance;
    //Further working with properties and methods IWinApplication via the WinApp variable
End Sub UserProc;

The example shows in general the way of getting the object that is used to control started application.

See also:

IWinApplicationClass