IMetabaseCache.SharedValue

Syntax

SharedValue(Id: String): Variant;

Parameters

Id. Global variable identifier.

Description

The SharedValue property returns current value of a global variable.

Example

In this example GLOBAL_INT - identifier of a global variable.

Sub Main;
Var
    MB: IMetabase;
    Str: String;
Begin
    MB := MetabaseClass.Active;
    Str := Mb.Cache.SharedValue("GLOBAL_INT"As String;
    Debug.WriteLine(Str);
End Sub Main;

After executing this example current value of a global variable is displayed in console window.

See also:

IMetabaseCache | ISharedParams