BUG: Safety Check Box Not Working in Catalog Manager

ID: Q128204

The information in this article applies to:

SYMPTOMS

Using the Safety check box in Catalog Manager does not restrict the alert messages in program files.

Within Catalog Manager, if you select the Tools menu pad and then the Settings... option, the Catalog Manager Settings dialog box appears. Within this dialog box is the check box in question (Safety). If Safety is checked, this is the same as SET SAFETY ON in the FoxPro Language Reference.

By default, it is always checked unless it has been manually unchecked at some earlier time. When this check box is checked, however, it does not behave as does the SET SAFETY ON command line, as expected.

RESOLUTION

Use the SET SAFETY OFF command line when neccessary in program files.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

1. Verify the Safety check box is checked.

2. From Catalog Manager's main screen, select the Program tab.

3. Click the New button. From the Create Program dialog box, click

   the New Program button.

4. In the Save As dialog box, save this new program as MYSAFETY.PRG.

5. When the MYSAFETY.PRG editing window appears, enter the following

   lines of code:

   USE customer
   INDEX ON cno TAG cno
   SET ORDER TO TAG cno
   BROWSE

6. Press CTRL+W to save the program. Click the Run button to execute it.

7. After running the code for the first time, immediately run it

   again and the following alert message appear:

   cno already exists, overwrite it?

8. Click the Modify button.

9. When the edit window for MYSAFETY.PRG appears, enter the following

   command line as the very first line of the code:

   SET SAFETY OFF

10. Run the program again. The alert message no longer appears. This is the
    behavior that is expected when the Safety check box has been checked.

Additional reference words: FoxWin FoxDos buglist2.60 buglist2.60a 2.60 2.60a KBCategory: kbenv kbbuglist KBSubcategory: FxenvConfigfp

Last Reviewed: June 27, 1995