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 - setdevprt() set the pronter device http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 setdevprt()         Set the pronter device
------------------------------------------------------------------------------
 Declaration
   getset.hdr

 Syntax
   proc setdevprt extern
   param value logical lOn

 Arguments
   lOn is the new setting for the flag.

 Return
   None.

 Description
   The setdevprt() function sets the printer device according to the
   passed parameter. If lOn is .t., the printer device is set to print,
   otherwise to screen.

   The printer device can also be set using the set device to command.

 Example
   #define EXAMPLE_IO
   #include example.hdr

   proc Test_setdevprt
   ? getdevprt()                // prints .f.
   set device to print
   ? getdevprt()                // prints .t.
   setdevprt( .f. )
   ? getdevprt()                // prints .f.
   endproc

   proc main
   Test_setdevprt()
   endproc

See Also: getdevprt() getsetdevprt()

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