IApplicationGlobals.Item

Syntax

Item(Name: String): Variant;

Parameters

Name. Name of a global variable.

Description

The Item property determines value of the specified global variable.

Comments

The Name parameter is case-sensitive.

If the specified global variable does not exist, on reading the property returns Null; if the value is set, a variable is created with the specified name and value.

Example

Executing the example requires a form.

Add a link to the UI system assembly.

Sub UserProc;
Var
    App: IWinApplication;
    Glob: IApplicationGlobals;
Begin
    App := WinApplication.Instance;
    Glob := App.Globals;
    Glob.Item("META") := "Repository";
End Sub UserProc;

After executing the example the value of the global variable in the META application is changed. If this variable does not exist, it will be created.

See also:

IApplicationGlobals