Count: Integer;
The Count property returns the number of global variables in the application.
Sub Main;
Var
App:IApplication;
Glob:IApplicationGlobals;
i: Integer;
Begin
App := WinApplication.Instance As IApplication;
Glob := App.Globals;
i := Glob.Count;
End Sub Main;
After executing the example the "i" variable contains the number of global variables in the application.
See also: