Microsoft KB Archive/130576

= PRB: MODIFY GENERAL Fires the FORM DEACTIVATE Clause =

Article ID: 130576

Article Last Modified on 5/7/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 Q130576



SYMPTOMS
Issuing a MODIFY GENERAL or MODIFY MEMO command in a Visual FoxPro form causes the Deactivate event of the form to fire. This is because the window created by the MODIFY GENERAL or MODIFY MEMO commands causes the form to lose focus.



STATUS
This behavior is by design.



Steps to Reproduce
 Create a new form based on a table with a General field. Add a command button and a text box to the form. Set the Control Source of the text box to the General field of the table.  Add the following code to the Click event of the command button: WAIT WINDOW "About to modify the general field" MODIFY GENERAL WAIT WINDOW "After modify general"   Add the following code to the Deactivate event of the form. WAIT WINDOW "Called from Deactivate Event"  Save and run the form. Note that the Wait Window placed in the Deactivate event appears after you click the command button.

Additional query words: kbvfp600 kbvfp300 kbvfp500

Keywords: kbbug kbprb KB130576

-

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

© Microsoft Corporation. All rights reserved.