Equinox Online Help - Language Reference - A to Z

Home

NextAttachedUser

Applies to
SyntaxNextAttachedUser LoginNameItem, ConnectIDItem
Action[Statement] Returns details of the next logged in application user
ScopeUsable anywhere.
Notes

This statement is always used after FirstAttachedUser to return the users currently attached to an application. LoginNameItem will contain the login name of an attached user. The connection identifier is returned in ConnectIDItem.

The system workarea SysError is set to a non-zero value if an error occurs, otherwise zero.

CategoryClient - Server
See Also ConnectionID, FirstAttachedUser, IsNetwork, IsUserAttached, IsUserGroupAttached, NextAttachedUser, RemoveAttachedUser
Example

This example takes a snapshot of users currently logged in to an application.

string LoginName, ConnectID

FirstAttachedUser LoginName, ConnectID, True
Print "The following users are currently logged in: "

while not syserror
Print LoginName
| Fetch next user
NextAttachedUser LoginName, ConnectID
end while