Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>csetsafety()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CSETSAFETY()
 Queries/sets the safety mode switch
------------------------------------------------------------------------------
 Syntax

     CSETSAFETY([<lNewSwitch>]) --> lOldSwitch

 Argument

     <lNewSwitch>  Designates whether existing files should not be
     overwritten during CA-Clipper Tools file operations.  Designates .F. for
     yes; .T. for no.

 Returns

     CSETSAFETY() returns the current setting for the CA-Clipper Tools safety
     mode switch; or if <lNewSwitch> is passed, the previous setting.

 Description

     CSETSAFETY() returns a logical value for the current setting of the
     CA-Clipper Tools internal safety mode switch.  If you designate
     CSETSAFETY() as .T., the CA-Clipper Tools functions do not overwrite
     existing files.

 Note

     Warning!  CSETSAFETY() only works with CA-Clipper Tools functions..

 Examples

     .  Query the SAFETY function:

        lSafety:=  CSETSAFETY()

     .  Turn safety mode on and save the previous status:

        lOldSafety:= CSETSAFETY(.T.)


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