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>nnetjform()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETJFORM()
 Sets or determines the form name for a job
------------------------------------------------------------------------------
 Syntax

     NNETJFORM(<cQueue>,<nJob>,[<cNewName>],[<cServer>|
        <nConId>]) --> cName

     Netware: 2.2 and 3.11

 Arguments

     <cQueue>  Designates the name of the print queue that is accessed.

     <nJob>  Designates the job number of the job that is processed in
     <cQueue>.

     <cNewName>  Designates an optional parameter that contains a new
     form name that is set for <nJob>.  The form name can be up to 15
     characters long.

     <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

     NNETJFORM() returns the name of the form required for <nJob>.

 Description

     NOVELL NET JOB FORM
     Before a job is serviced, the print server checks to see if the form
     mounted in the printer matches the form specified in <nJob>.  If the
     form in the printer differs from the specified form, the print server
     waits for a form change.  NNETJFORM() allows you to set or determine the
     form name for <nJob>.  To query the form name, do not pass a value for
     <cNewName>.  A new form can be set with this parameter.  However, the
     function does not check to see if <cNewName> exists.

 Examples

     .  Determine the form name for the first job in the queue
        LINEPRINTER:

        nJob = BIN2I(LEFT(NNETJLIST('LINEPRINTER'), 2))
        ? NNETJFORM('LINEPRINTER', nJob)

     .  Set the form name for the first job in the queue LINEPRINTER
        to INVOICE:

        nJob = BIN2I(LEFT(NNETJLIST('LINEPRINTER'), 2))
        ? NNETJFORM('LINEPRINTER', nJob, 'INVOICE')

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