Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfusercheck()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfUserCheck()
Checks if the user code is valid
------------------------------------------------------------------------------
Syntax:

     dfUserCheck( <cValid> ) --> lValid

Parameters:

     <cValid>   User levels for which the operation must be validated

Returns:

     <lValid> Is .T. if the user has validated the operation

Description:

     Allows to verify if the user level validates the <cValid> situation

Example:

     dfLogin() // Call the password system
     
     // Test the user access level
     
     IF dfUserCheck("-1-2-3-6-") // If the user level is
                                 // 1, 2, 3 or 6
                                 // the operation is
                                 // validated
        dbMsgErr( "User   " +dfUserName() + "//" +;
                  "is not qualified to use the program"  )
        QUIT
     ENDIF

See also:

     dfInkey(), dfUserLev()

See Also: dfInkey() dfUserLev()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson