Description
Checks if the passed user/password combination is legal for the current application and, if so, returns the user level
Syntax
value = CheckLegalUser (User, Password)
Returns
The following values are returned:
Value | Description |
---|---|
-1 | The user/password combination is incorrect |
0 | The user is a regular user |
1 | The user is an administrator |
2 | The user is a system administrator |
Example
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", "")