AutoRun: IMetabaseAutoRun;
The AutoRun property returns the autorun object for the user.
Sub UserProc;
Var
MB: IMetabase;
Users: IMetabaseUsers;
User: IMetabaseUser;
Begin
MB := MetabaseClass.Active;
Users := MB.Security.Users;
User := Users.Item(0);
If IsNull(User.AutoRun.Object) = False Then
Debug.WriteLine("Autorun object: " + User.AutoRun.Object.Id);
End If;
End Sub UserProc;
After executing the example the development environment console displays the identifier of the startup object if it is assigned for the first user.
See also: