Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetremqop()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETREMQOP()
 Removes a queue operator
------------------------------------------------------------------------------
 Syntax

     NNETREMQOP(<cQueue>,<cOperator>|<aOperators>,
        [<cServer>|   <nConId>]) --> nNumber

     Netware: 2.2 and 3.11

 Arguments

     <cQueue>  Designates a print queue on the default server or on
     <cServer>|<nConId>.

     <cOperator>  Designates the name of a user that is removed from the
     operator list of <cQueue>.

     <aOperators>  Designates a number of elements of the type string.
     Each element designates the name of a user that is removed from the
     operator list of <cQueue>.

     <cServer>  Designates the name of the file server used.  Your
     workstation must be attached to <cServer>.

     <nConId>  Designates the connection ID of your workstation on
     <cServer>.

 Returns

     NNETREMQOP() returns the number of operators that are successfully
     removed from the operator list of <cQueue>.  The value 0 indicates that
     no operator has been deleted.

 Description

     NOVELL NET REMOVE QUEUE OPERATOR
     NNETREMQOP() allows you to remove one or more users from the operator
     list of a print queue.  To remove one operator, the user name must be
     passed in <cOperator>.  By passing an array containing the user names as
     elements (<aOperators>), more operators can be deleted.  With the
     parameters <cServer> or <nConId>, the operator list of any attached
     server can be modified.  The connection ID of a server can be determined
     with NNETATTACH() or NNETLOGIN().

     Supervisor rights of the requesting user on the related file server are
     required to remove users from an operator list.

 Note

     .  NNETREMQOP() is a high level function based on the low level
        functions of the bindery access.  The CA-Clipper source code can be
        found on the product disks.

 Examples

     .  Remove user MICK from the operator list of the queue
        LINEPRINTER:

        IF NNETREMQOP('LINEPRINTER','MICK')>0
              ? 'Operator removed successfully!'
        ELSE
              ? 'Error!'
        ENDIF

     .  Remove JIM, PETER, and MIKE from the operator list of the
        queue LINEPRINTER:

        NNETREMQOP('LINEPRINTER',{'JIM','PETER','MIKE'})

See Also: NNETADDQOP()

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