PRB: SET SAFETY OFF Still Asks to Overwrite Existing App

Last reviewed: May 16, 1996
Article ID: Q114132
The information in this article applies to:
  • Microsoft FoxPro for Macintosh, version 2.5b

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:


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 16, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.