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> queaddget() / queaddset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 QueAddGet() / QueAddSet()
------------------------------------------------------------------------------
 Purpose:
 Enable or disable jobs being added to a queue.

 Syntax:
 bResult = QueAddGet( dwQueueID )
 bResult = QueAddSet( dwQueueID, bAddFlag )

 Parameters:
 dwQueueID The print queue ID number.
 bAddFlag  Specifies whether to allow new jobs to be added to the queue
 -TRUE to enable new jobs to be added and FALSE to disable new
 jobsfrom being added.

 Returns:
 A boolean value (TRUE or FALSE).

 The CA-Clipper names for these functions are:
 QueAddGet() / QueAddSet()

 Description:
 QueAddGet() returns TRUE if new print jobs may be added to the queue
 dwQueueID.

 Returns FALSE if not, or if an error occurs.

 QueAddSet() enables or disables the adding of new jobs to the queue
 specified by dwQueueID. If bAddFlag is passed as TRUE, new jobs may be
 added, if bAddFlag is passed as FALSE, the adding of new jobs is disabled.

 Example:
 // To determine whether new print jobs can be added to print
 // queue PRINTQ_1:
 dwCurrQ = QueIDGet ( "PRINTQ_1" )
 if ( dwCurrQ != NOVERRLONG )
    bAddJobs = QueAddGet( dwCurrQ )
    if ( NWErrorGet() = 0 )
       if ( bAddJobs )
          ? "New jobs may"
       else
          ? "New jobs may not"
       endif
       ?? " be added to print queue PRINTQ_1"
    endif
 endif

 Notes:
 The print queue ID number is obtained using the QueIDGet()
 function.

 These functions require that the requesting user has queue operator rights.
 If FALSE is returned, check NWErrorGet().

See Also: QueIDGet() QJbAddingTest()

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