IStations.Item

Syntax

Item(Index: Integer): IStation;

Parameters

Index. An index of the workstation in the collection.

Description

The Item property returns a workstation from the collection by index.

Comments

The property is read-only.

Example

Executing the example requires a form, a button named Button1 on this form.

Sub Button1OnClick(Sender: Object; Args: IEventArgs);

Var

MB: IMetabase;

Sec: IMetabaseSecurity;

m_User: IMetabaseUser;

St: IStations;

s: String;

Begin

MB := MetabaseClass.Active;

Sec := MB.Security;

m_User := Sec.ResolveName("ADMIN") As IMetabaseUser;

St := m_User.Stations;

s := St.Item(0).Name;

End Sub Button1OnClick;

On clicking the button, the "s" variable contains a name of the first workstation in the collection.

See also:

IStations

IDomainStations