PRB: SET SAFETY OFF Still Asks to Overwrite Existing App

ID: Q114132

The information in this article applies to:

SYMPTOMS

FoxPro for Macintosh will always ask "Replace existing 'filename.app'?" when you are rebuilding an existing application even if SAFETY is set to OFF.

NOTE: This behavior does not occur in Visual FoxPro 3.0b for Macintosh.

CAUSE

The "Replace existing..." dialog box is an Apple common dialog box that is not affected by the setting of SAFETY in FoxPro.

STATUS

This behavior is by design.

MORE INFORMATION

In FoxPro for Windows and MS-DOS, if SAFETY is set to OFF before an existing application is rebuilt, FoxPro will not ask if you want to overwrite the existing file.

Steps to Reproduce Problem

1. Type the following command in the FoxPro Command window:

      SET SAFETY OFF

2. Open an existing project that has already had an application (.APP)
   built from it and is residing in the current working folder.

3. Rebuild the application. You will be asked "Replace existing
   'filename.app'?"

REFERENCES

"Language Reference," version 2.5, page 784 "User's Guide," version 2.5, Chapter 11

Additional reference words: FoxMac 2.50b KBCategory: kbprg kbprb KBSubcategory:

Last Reviewed: May 16, 1996