UserCreate
Not available for a Windows user.
Creates a record for a new user. A new user of the specified type is created. The name of the user needs to be unique.
This function is not supported on the Internet Display Client. If this function is called on the Internet Display Client then it will return an error.
Syntax
UserCreate(sName, sFullName, sPassword, sType [, sAccess] [, sPrivGlobal] [, sPriv1..sPriv8] )
sName:
The name of the user.
sFullName:
The full name of the user.
sPassword:
The password of the user.
The sPassword argument is optional. If not passed, this argument defaults to an empty string which is subsequently ignored. It is included for the purposes of handling duplicate user names and separate password identification compatibility.
sType:
The generic type of user. The type needs to be defined in the Users database (with the Users form).
sAccess:
User's viewable areas.
sPrivGlobal:
User's global privilege.
sPriv1-8:
User's privilege for areas 1 - 8.
Return Value
0 (zero) if successful, otherwise an error is returned.
Related Functions
UserDelete, UserEditForm, UserPassword, UserPasswordForm, UserCreateForm
Example
/* Create a new user */
UserCreate("Fred", "Fred Jones", "secret", "Operator");
See Also