UserSetStr
Sets the value of the given field for the given user record in the project configuration (users.dbf ) on the local machine.
After this function has been called, use the function UserUpdateRecord to update the user record on the running system.
Syntax
UserSetStr(sName, sField, sData)
sName:
The name of the user who's configuration record we wish to modify.
sField:
The name of the field in users.dbf to modify.
sData:
The new value of the field.
Return Value
0 (zero) if successful, otherwise an error is returned.
Related Functions
UserDelete, UserEditForm, UserPassword, UserPasswordForm, UserCreateForm
Example
UserSetStr("Fred", "Comment", "Fred is an engineer");
UserUpdateRecord();
See Also