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

     NNETADDQUS(<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 a user of
     <cQueue>.

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

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

 Description

     NOVELL NET ADD QUEUE USER
     NNETADDQUS() allows you to add one or more users as users 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

     .  NNETADDQUS() 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 a user of the queue LINEPRINTER:

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

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

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

See Also: NNETREMQUS()

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