Count: Integer;
The Count property returns the number of users groups of the active repository.
To execute the example, add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
MG: IMetabaseGroups;
i: Integer;
Begin
MB := MetabaseClass.Active;
MS := MB.Security;
MG := MS.Groups;
Debug.WriteLine("Number of group of users: " + MG.Count.ToString);
End Sub UserProc;
After executing the example the console will display the number of group of users in active repository.
See also: