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