Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FAST TEXT SEARCH for Clipper v.2.0 - <b>isdevice()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   ISDEVICE()

       Purpose

   Determine if SET DEVICE TO command is pointing to the printer.

       Parameters

   None.

       Return Value

   .T. if SET DEVICE TO PRINTER is in effect.

       Comments

   Use ISDEVICE() in a UDF to query Clipper's device setting, change 
   it if necessary, and then restore the original value.

       Example

   .
   .
   .
   set device to print
   x = ISDEVICE()
   set device to screen
   y = ISDEVICE()
   ? x                       && prints .T.
   ? y                       && prints .F.
   .
   .
   .

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