OpenLogons(NoFilterLogons: Boolean): IAuditLogons;
NoFilterLogons determines whether the filter will be used.
The OpenLogons method returns information about connections to the repository.
Sub Main;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
AL: IAuditLog;
ALogon: IAuditLogons;
s: String;
Begin
MB:=MetabaseClass.Active;
MS:=MB.Security;
Al:=MS.OpenAuditLog;
ALogon:= AL.OpenLogons(False);
s:=ALogon.UserName;
End Sub Main;
After executing this example the "s" variable contains the name of the last user who entered to the current repository.
See also: