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

     NNETREMQUS(<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 login name of a user that is removed from
     the user list of <cQueue>.

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

     NNETREMQUS() returns the number of users that have been removed
     successfully from the user list of <cQueue>.  The value 0 indicates that
     no user has been deleted.

 Description

     NOVELL NET REMOVE QUEUE USER
     NNETREMQUS() allows you to remove one or more users from the user list
     of a print queue.  To remove one user, the user name must be passed in
     <cUser>.  By passing an array containing the user names as elements
     (<aUser>), more users can be deleted.  With the parameters <cServer> or
     <nConId>, the user 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 user list.

 Note

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

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

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

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

See Also: NNETADDQOP()

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