xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

CSetSafety()

Retrieves and/or changes the safety switch used in CA-Tools file operations.

Syntax

CSetSafety( [<lNewMode>] ) --> lOldMode

Arguments

<lNewMode>
This is an optional logical value defining the safety switch for CA-Tools file operations. .T. (true) sets the safety switch ON, and .F. (false) sets it OFF.

Return

The function returns the previous safety switch as a logical value.

Description

When the file safety switch is set to ON, existing files are not overwritten. The switch is only recognized by CA-Tools compatible functions FileAppend(), FileCopy(), ScreenFile(), StrFile() and Volume().

Info

See also:FileAppend(), FileCopy()
Category: CT:Settings , File functions
Source:ct\strfile.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe