Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>printsend()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PRINTSEND()

Syntax:     PRINTSEND(<expC>,<expN>)

Arguments:  <expC> denotes the character or string that should be sent
            to the printer.
            <expN> denotes the printer to send it to.  In this case the
            values 1 to 3 correspond to the units LPT1:" to LPT3:.

Returns:    A numeric value.
            The return value corresponds to the number of characters
            that should be printed.  A return of 0 will therefore signify
            that it was possible to print all the characters to the printer.

Usage:      PRINTSEND() is most useful when more than one printer is
            online.  Whenever a SET PRINTER occurs, a form feed is
            sent.  PRINTSEND() is the only way to simultaneously print to
            two printers, e.g., invoice paper and listing paper.  This
            function can be used to transmit any character to a printer,
            including all control characters.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * To send a form feed character to the printer
            * when it is not at the start of the page.
            IF .NOT. TOF()
               PRINTSEND(12)
            ENDIF



See Also: PRINTFILE() TOF()

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