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>nnetaddqop()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETADDQOP()
 Adds operators to a print queue
------------------------------------------------------------------------------
 Syntax

     NNETADDQOP(<cQueue>,<cUser>|<aUser>,[<cServer>|
        <nConId>) --> nNumber

     Netware: 2.2 and 3.11

 Arguments

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

     <cUser>  Designates the name of a user that is added as an operator
     of <cQueue>.

     <aUser>  Designates a number of elements of the type string.  Each
     element contains the name of a user that is added as an operator 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

     NNETADDQOP() returns the number of users that have been added
     successfully as operators of <cQueue>.  A value of 0 indicates that no
     operator has been added.

 Description

     NOVELL NET ADD QUEUE OPERATOR
     NNETADDQOP() allows you to add one or more users as operators of a print
     queue.  To add one user, the login name of the user must be passed in
     <cUser>.  To add more users, an array containing all user names can be
     passed in <aUser>.  With the parameters <cServer> or <nConId>, the
     operation can be performed on any attached server.  The connection ID of
     a server can be determined with NNETATTACH() or NNETLOGIN().

     Supervisor rights are required on the related file server to add a user
     as a queue operator.

 Note

     .  NNETADDQOP() 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

     .  Add user MICK as an operator of the queue LINEPRINTER:

        IF NNETADDQOP('LINEPRINTER','MICK')>0
           ? 'User added successfully!'
        ELSE
           ? 'Error!'
        ENDIF

     .  Add users PETER, MIKE, and JIM as operators of the queue
        LINEPRINTER:

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

See Also: NNETREMQOP()

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