Adds a User.
[ bOk = ] Object.AddUser ( pUser )
The AddUsers method syntax has the following parts:
Name |
Type |
Description |
Object |
AUsers |
AUsers object |
pUser |
Val AUser |
AUser object |
bOk |
Bool |
A boolean expression that specifies whether the user was added. |
bVerified can be one of the following:
Value |
Description |
True * |
The user was added. |
False |
The user was not added. |
The following example will add the current users:
usrNew=CreateObject(ATERT.User)
Users.Login("Administrator", "")
usrNew=createobject("AUser")
usrnew.FullName="Ron Smith"
usrnew.Name="RonS"
usrNew.Password="abcd"
usrNew.Rights=auserRightModifyPrograms
if not Users.AddUser(usrNew)
print "error:while adding user (user probably exist)"
endif
AUser, Login, RemoveUser, ShowLoginDialog, ShowUsersDialog, Users, UsersCount