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 - set exclusive control the exclusive flag http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 set exclusive       Control the exclusive flag
------------------------------------------------------------------------------
 Syntax
   set exclusive on|off

 Arguments
   None.

 Description
   The set exclusive command designates whether database or index files are
   opened by default as exclusive or shared. set exclusive affects the file
   open mode by the open and use commands.

   When set exclusive is on, databases and and their associated
   memo and index files are opened for exclusive use by the current
   application.

   When set exclusive is off, databases and and their associated
   files are opened in shared mode. The exclusive clause of the use and
   open commands overrides the set exclusive off setting.

   The table below shows the possible database open modes.

   ----------------------------------------------
                             set exclusive
   command/clause         -----------------------
                          on            off
   ----------------------------------------------
   open/use               exclusive     shared
   open/use exclusive     exclusive     exclusive
   open/use shared        exclusive     shared
   ----------------------------------------------

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_setexclusive
   ? getexclusive()           // print .t.
   set exclusive off
   ? getexclusive()           // print .f.
   set exclusive on
   ? getexclusive()           // print .t.
   endproc

   proc main
   Test_setexclusive()
   endproc

See Also: getexclusive()

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