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 links to the Forms and UI system assemblies.

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