Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> usracclimget() / usracclimset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 UsrAccLimGet() / UsrAccLimSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the user account credit limit.

 Syntax:
 lResult=UsrAccLimGet(lpszUserName)
 lResult=UsrAccLimSet(lpszUserName, lCreditLimit)

 Parameters:
 lpszUserName The name of the user.
 lCreditLimit The new credit limit.

 Returns:
 A numeric value (signed long int).

 Description:
 UsrAccLimGet() returns the account credit limit of a specified user
 lpszUserName on the current file server. This is the amount either above
 or below a zero account balance that a user can go before the file server
 refuses to give service.

 The value of the account limit is normally set to a negative value, this
 being the amount that a user is allowed to go overdrawn.

 UsrAccLimSet() returns the account credit limit of the specified user
 lpszUserName on the current file server to the specified value
 lCreditLimit. and returns the previous credit limit

 Returns NOVERRLONG if an error occurs.

 Example:
 // To test user MANDY's account credit limit and change it to -500:
 lCurrLim = UsrAccLimGet( "MANDY" )
 if ( !NWErrorGet() )
    if ( lCurrLim <> -500 )
       if( UsrAccLimSet( "MANDY", -500 ) = - 500 )
          ? "User MANDY now has an overdraft facility of 500 units."
       Endif
    endif
 endif

 Notes:
 To set a user's account credit limit requires Supervisor
 equivalence. UsrAccLimSet() is a redefinition of
 SetPrpValSet().

See Also: UsrAccBalGet() / UsrAccBalSet() UsrAccResGet() UsrAccResSet()

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