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

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

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_getsetexclusive
   vardef
      logical lExclusive
   enddef
   ? getexclusive()                     // print current exclsuive setting
   lExclusive := getsetexclusive( .f. ) // save setting while adjusting it
   ? lExclusive                         // print saved setting
   ? getexclusive()                     // print changed setting
   setexclusive( lExclusive )           // set the exclusive flag to original
   ? getexclusive()                     // print current setting
   endproc

   proc main
   Test_getsetexclusive()
   endproc

See Also: getexclusive() setexclusive()

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