Operation: Integer;
The Operation property returns an operation number.
Sub Main;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
AL: IAuditLog;
ALogon: IAuditLogons;
Operat: IAuditOperations;
i: Integer;
Begin
MB:=MetabaseClass.Active;
MS:=MB.Security;
Al:=MS.OpenAuditLog;
ALogon:= AL.OpenLogons(False);
ALogon.Next;
Operat:=Al.OpenOperations(ALogon.Session);
i:=Operat.Operation;
End Sub Main;
After executing the example the "s" variable contains the number of the last operation.
See also: