Usersecurity::NewUser |
See Also ß |
Creates a new user record and stores it in the user data. Note this method returns .T. or .F. only, but creates an empty oUser structure that you can fill. Then use SaveUser() to commit the new user's settings.
Syntax: |
o.newuser() |
Example: | o=CREATE('usersecurity') o.cFilename = 'tools\wwusers' o.cAlias = 'wwusers' *** Create oUser member with default settings o.NewUser() *** Update new user settings oUser = o.oUser oUser.username = 'jrow' oUser.Password = 'mypassword' oUser.FullName = 'Rick Strahl' oUser.Active = .F. && Activate this guy later *** Actually save the user to file o.SaveUser() |