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

 Syntax
   func logical getsetalternate 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 getsetalternate() function sets the alternate flag and returns its
   previous setting.

 Example
   #define EXAMPLE_FILE
   #include example.hdr

   proc Test_getsetalternate
   vardef
      logical lAlt
   enddef
   lAlt := getsetalternate( .t. )
   ? lAlt                         // print .f.
   ? getalternate()               // print .t.
   getsetalternate( lAlt )
   ? getalternate()               // print .f.
   endproc

   proc main
   Test_getsetalternate()
   endproc

See Also: getalternate() setalternate()

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