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 - getsetconsole() get and set the console flag http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getsetconsole()     Get and set the console flag
------------------------------------------------------------------------------
 Declaration
   getset.hdr

 Syntax
   func logical getsetconsole extern
   param value logical lOn

 Arguments
   lOn is the new setting for the flag.

 Return
   A logical indicating the previous setting of the respective system flag.

 Description
   The getsetconsole() function sets the console flag and returns its
   previous setting.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_getsetconsole
   vardef
      logical lConsole
   enddef
   lConsole := getsetconsole( .f. )
   @ row() + 1, 0 say lConsole                // prints T
   @ row() + 1, 0 say getsetconsole( .t. )    // prints F
   ? getsetconsole( .t. )                     // prints .T.
   endproc

   proc main
   Test_getsetconsole()
   endproc

See Also: getconsole() setconsole()

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