IMetabaseCache.SharedValue

Syntax

SharedValue(Id: String): Variant;

Parameters

Id. Global variable identifier.

Description

The SharedValue property returns current value of a global variable.

Example

Executing the example requires the GLOBAL_INT global variable created in repository settings. The variable has integer data type.

Sub UserProc;
Var
    MB: IMetabase;
    sValue: Integer;
Begin
    MB := MetabaseClass.Active;
    sValue := Mb.Cache.SharedValue("GLOBAL_INT"As Integer;
    Debug.WriteLine(sValue);
End Sub UserProc;

After executing the example the console window displays the current value of the specified global variable.

See also:

IMetabaseCache | ISharedParams