AddUser Method (AUsers)

Adds a User.

Syntax

[ 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.

Where

bVerified can be one of the following:

 

Value

Description

True *

The user was added.

False

The user was not added.

Example

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

 

Applies to

AUsers

See Also

AUser, Login, RemoveUser, ShowLoginDialog, ShowUsersDialog, Users, UsersCount