IStations.Count

Syntax

Count: Integer;

Description

The Count property returns the number of workstations in the collection.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Sec: IMetabaseSecurity;
    User: IMetabaseUser;
    Stations: IStations;
    Station: IStation;
    i, c: Integer;
Begin
    MB := MetabaseClass.Active;
    Sec := MB.Security;
    User := Sec.ResolveName("ADMIN"As IMetabaseUser;
    Stations := User.Stations;
    For i := 0 To c - 1 Do
        Station := Stations.Item(i);
        Debug.WriteLine(Station.Name + '(' + Station.FullName + ')' + ". Comment: " + Station.Comment + ". Access: " + Station.Access.ToString);
    End For;
End Sub UserProc;

After executing the example the development environment console displays information about workstations, for which access for the specified repository user is set up.

See also:

IStations | IDomainStations