SharedValue(Id: String): Variant;
Id. Global variable identifier.
The SharedValue property returns current value of a global variable.
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: