Equinox Online Help - Language Reference - A to Z

Home

NextUserName

Applies to
SyntaxNextUserName [LoginName][, FullName]
Action[Statement] Provides the login and full name of users defined within a user group.
ScopeUsable anywhere.
NotesThis statement is used after FirstUserName to ascertain the users defined within a particular user group. The next user can be found for either the user group specified in FirstUserName or all the users in all the groups if it was unspecified. FullName will contain the full name as entered in the User Management dialog. LoginName will contain the login name as specified in the user details section of the user management dialog. Both of these arguments are optional. This statement remembers the previous user found and will automatically progress down the list until the last user is encountered. The system workarea SysError is set to a non-zero value if an error occurs, otherwise zero.
CategoryUser, groups and ESS
See Also ChangeRecordGroup, CurrentRecordGroup, FieldPermissions, FirstUserGroup, FirstUserName, NextUserGroup, NextUserName
Example

This example prints the user name and full name of all users currently defined within all user groups.

string LoginName, FullName

FirstUserName LoginName, FullName
Print "Users for this application: "

while not syserror
Print LoginName, FullName
NextUserName LoginName, FullName
end while