Determines whether dBASE Plus asks for confirmation before overwriting a file or removing records from a table when you issue ZAP.

Syntax

SET SAFETY ON | off

Description

When SET SAFETY is ON, dBASE Plus. prompts for confirmation before overwriting a file or removing records from a table when you issue ZAP. If you want your application to control the interaction between dBASE Plus and the user with regard to overwriting files, issue SET SAFETY OFF in your program.

SET SAFETY affects the following commands:

Commands using a TO FILE option

COPY

COPY FILE

COPY STRUCTURE [EXTENDED]

CREATE/MODIFY commands

INDEX

SAVE

SET ALTERNATE TO

SORT

TOTAL

UPDATE

ZAP

SET SAFETY also affects the PUTFILE( ) function

Note

SET TALK OFF does not suppress SET SAFETY warnings.

OODML

SAFETY is always OFF.