guides:programming:programmers_reference_manual:checklegaluser

CheckLegalUser function

Checks if the passed user/password combination is legal for the current application and, if so, returns the user level

value = CheckLegalUser(User, Password)

The following values are returned:

ValueDescription
-1The user/password combination is incorrect
0The user is a regular user
1The user is an administrator
2The user is a system administrator
The following example shows how to evaluate column values by reference to the dictionary column name.

/* The following code fragment checks the authorization level of the user "SAM" in the current application */
retval = CheckLegalUser("SAM", "")
  • guides/programming/programmers_reference_manual/checklegaluser.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1