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>dfuserlev()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfUserLev()
Returns the user level
------------------------------------------------------------------------------
Syntax:

     dfUserLev( [<nLev>] ) --> nOldLevel

Parameters:

     <nLev>     New user level

Returns:

     <nOldLevel> Current user level

Description:

     Returns the current user level and possibly changes it

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
     ELSE
        ? "Current user level is",dfUserLev()
     ENDIF

See also:

     dfInkey(), dfUserName()

See Also: dfInkey() dfUserName()

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