PRB: Warning Displays Saving Class With SET SAFETY OFF (193945)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 3.0
  • Microsoft Visual FoxPro for Windows 3.0b
  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 5.0a
  • Microsoft Visual FoxPro for Windows 6.0

This article was previously published under Q193945

SYMPTOMS

When you save a class and give it a filename of a class that already exists, the following error occurs even if SET SAFETY is OFF:
A class with that name already exists, overwrite it?
Visual FoxPro provides you the ability to suppress an overwrite screen on forms, reports, and etc. However, there is not a way to suppress this message when overwriting a class.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Issue the following commands in the Command window:
          SET SAFETY OFF
          CREATE CLASS mycheck OF myclass AS checkbox
    						
  2. Close and save the Class Designer dialog box.
  3. Issue the CREATE CLASS command shown in Step 1 in the Command window again. Note that a message box appears asking to overwrite the class. The SET SAFETY command does not turn off the message box when saving a class.

Modification Type:MajorLast Reviewed:5/12/2003
Keywords:kbprb KB193945