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 print</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SET PRINT


Syntax:     SET PRINT on/OFF/(<expL>)

Purpose:    To toggle echo of CONSOLE output to the printer.

Usage:      When PRINT is ON, output sent to the printer is also echoed
            to the screen unless CONSOLE is OFF.  @...SAYs, however, are
            not affected by SET PRINT ON.  To send them to the printer,
            use SET DEVICE TO PRINT.

            Note that a number of commands such as REPORT and LABEL FORM
            can direct output to the printer with a TO PRINT clause.  To
            suppress output to the screen for these commands, you must
            still SET CONSOLE OFF.

Library:    CLIPPER.LIB


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

   USE Customers

   SET PRINT ON
   SET CONSOLE OFF

   DO WHILE .NOT. EOF()
      ? Customer
      SKIP
   ENDDO

   EJECT
   SET PRINT OFF
   SET CONSOLE ON

   CLOSE DATABASES

   RETURN


See Also: EJECT SET CONSOLE SET DEVICE SET PRINTER

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