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

     NNETJTABS(<cQueue>,<nJob>,<nNewTabs>,[<cServer>|
        <nConId>]) --> nTabs

     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>.

     <nNewTabs>  Designates an optional parameter that contains the
     number of spaces to which the tabs are expanded.  The value 0 indicates
     that the tabs are not expanded.

     <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

     NNETJTABS() returns the number of spaces to which the tabs (CHR(9)) are
     expanded.  The value 0 indicates that the tabs have not been expanded.
     If an error occurs, the function returns -1.

     The return value makes only sense if <nJob> is a text job.

 Description

     The Queue Management System (QMS) differentiates between text and binary
     jobs.  In text jobs, QMS is able to replace tabs (CHR(9)) with spaces.
     The number of spaces per tab can be queried or set with NNETJTABS().

     The required job is specified by its job number.  The job number has
     nothing to do with the logical position of a job within a queue; for
     example, the job with the highest priority in a queue is not
     automatically job number 1.  The job number must be determined with
     NNETCAPJOB() or NNETJLIST().

 Examples

     .  Determine the number of spaces per tab created for the first
        job in the queue LINEPRINTER:

        nJob=BIN2I(SUBSTR(NNETJLIST('LINEPRINTER'),5,2))
        IF NNETJTXT('LINEPRINTER', nJob)
        ? NNETJTABS('LINEPRINTER', nJob)
        ELSE
        ? 'No text job'
        ENDIF

     .  Create five spaces per tab in the first job of the queue
        LINEPRINTER:

        nJob=BIN2I(SUBSTR(NNETJLIST('LINEPRINTER'),5,2))
        IF NNETJTXT('LINEPRINTER', nJob)
        ? NNETJTABS('LINEPRINTER', nJob, 5)
        ELSE
        ? 'No text job'
        ENDIF

See Also: NNETJTXT()

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