[<<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.)


This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson