IMetabaseGroups.Item

Syntax

Item(Index: Integer): IMetabaseGroup;

Parameters

Index — group index.

Description

The Item property returns users group of the active repository that index is passed by the parameter Index.

Example

Sub Main;

Var

MB: IMetabase;

MS: IMetabaseSecurity;

MG: IMetabaseGroups;

Mgroup: IMetabaseGroup;

Begin

MB:=MetabaseClass.Active;

MS:=MB.Security;

MG:=MS.Groups;

Mgroup:=MG.Item(0);

End Sub Main;

After executing this example the Mgroup variable contains the first users group of the active repository.

See also:

IMetabaseGroups