Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>set device</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SET DEVICE


Syntax:     SET DEVICE TO SCREEN/PRINT

Purpose:    To direct the output of @...SAY commands to either the
            screen or the printer.

Options:    Screen: Specifying SCREEN as the DEVICE directs all
            @...SAYs to the screen and is independent of the SET PRINT
            and SET CONSOLE status.

            Print: Specifying PRINT as the DEVICE directs all output
            to the device set with SET PRINTER TO.  This can include a
            local printer port, a network spooler, or a file.

Usage:      When DEVICE is SET TO PRINT, @...SAY commands are sent to
            the printer and are not echoed to the screen.  @...GETs are
            ignored.

            When sending @...SAYs to the printer, Clipper performs an
            automatic form feed whenever the current print head position
            is less than the last print position.  An EJECT, however,
            resets the internal printer row and column values to zero.
            Additionally, you can specify new internal printer row and
            column values with SETPRC().

            To send @...SAYs to a file, use SET PRINTER TO <filename>
            after SETting DEVICE TO PRINT.

Library:    CLIPPER.LIB


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

   SET DEVICE TO PRINT
   @ 2,10 SAY "Hello there"
   EJECT


See Also: @...SAY...GET EJECT SET PRINTER PROW() PCOL()

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