Microsoft KB Archive/193945

= PRB: Warning Displays Saving Class With SET SAFETY OFF =

Article ID: 193945

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



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.



Steps to Reproduce Behavior
  Issue the following commands in the Command window: SET SAFETY OFF CREATE CLASS mycheck OF myclass AS checkbox  Close and save the Class Designer dialog box. 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.

Additional query words: kbVFp300 kbVFp500 kbVFp600 kbDesigner kbXBase

Keywords: kbprb KB193945

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.