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>nnetqsrvs()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETQSRVS()
 Determines the list of print servers that service a print queue
------------------------------------------------------------------------------
 Syntax

     NNETQSRVS(<cQueue>,[<lAll>],[<cServer>|<nConId>])
        --> aPrintServer

     Netware: 2.2 and 3.11

 Arguments

     <cQueue>  Designates the name of the print queue for which the print
     servers are determined.

     <lAll>  Designates whether the names of all the print servers that
     have access to <cQueue> (.T.) or only the names of the print servers
     that are currently logged in at <cQueue> (.F.) are determined.  The
     default value is .F..

     <cServer>  Designates the name of the file server on which <cQueue>
     is processed.  Your workstation must be attached to <cServer>.

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

 Returns

     NNETQSRVS() returns an array that contains the names of print servers
     currently logged in at <cQueue> (<lAll> = .F.) or the number of print
     servers that have access to <cQueue> (<lAll> = .T.).  If an error occurs
     (for example, if <cQueue> does not exist), the function returns an empty
     array.

 Description

     NOVELL NET QUEUE SERVERS
     NNETQSRVS() allows you to determine the names of print servers that are
     currently logged in <cQueue> or have access to <cQueue>.  This
     information can be used to access one or more print servers with the
     print server functions of CA-Clipper Tools.

 Note

     .  This function requires that the requesting user have access to
        the queue as a user or an operator.

 Example

     Display a list of print servers that have access to the queue LINEPRINT
     and a list of print servers currently logged in at the queue LINEPRINT:

     aPServer=NNETQSRVS('LINEPRINT',.T.)
     ? 'Access to LINEPRINT have:'
     FOR i = 1 TO LEN(aPServer)
     ? aPServer[i]
     NEXT i

     aPServer=NNETQSRVS('LINEPRINT')
     ? 'Currently logged in are:'
     FOR i = 1 TO LEN(aPServer)
     ? aPServer[i]
     NEXT i

See Also: NNETNQSRVS()

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