Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - set print control the print flag http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 set print           Control the print flag
------------------------------------------------------------------------------
 Syntax
   set print on|off

 Arguments
   None.

 Description
   The set print command controls the print flag.

   The set print flag is part of the same I/O system as the ? command, with
   a default status of off.

   on duplicates all screen output to the current printer device. Set the
   printer device through the set printer to command.

   off designates that screen output will not be duplicated to the printer.

 Example
   #define EXAMPLE_IO
   #include example.hdr

   proc Test_setprint
   set printer to "LPT1"         // establish printer
   ? "This text goes to the screen"
   set print on                  // send I/O to the print device
   ? "This text goes to the printer"
   endproc

   proc main
   Test_setprint()
   endproc

See Also: getprnhandle() set printer to

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