Microsoft KB Archive/138473

= BUG: Code window closes design tools when it is run from a program in Visual FoxPro =

Article ID: 138473

Article Last Modified on 2/12/2007

-

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
 * Microsoft Visual FoxPro 7.0 Professional Edition
 * Microsoft Visual FoxPro 8.0 Professional Edition
 * Microsoft Visual FoxPro 9.0 Professional Edition

-



This article was previously published under Q138473



SYMPTOMS
When modifying reports, forms, or projects, you may find that under certain conditions the report, form, or project may close unexpectedly. This will happen when you have opened the item for editing using a program file, application, or from within an executable.

Typically an item is opened for editing by using one of these methods;

 Clicking Open or New on the File menu. Double-clicking the item from a project.  Entering the following command in the Command window: MODIFY COMMAND 



CAUSE
The problem occurs when you place the following line of code in a program (.prg) file: MODIFY COMMAND



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.



Steps to Reproduce Problem
 On the File menu, click New. Then click Program, and click the New button.  Enter the following text in the new program: MODIFY Report testr MODIFY Form testf MODIFY project testp </li> Save and Run the Program.</li> Right-click within the report window, and then click Data Environment.</li> Right-click within the Data Environment window, and then click Code. Note that the Report Writer and data environment close. This behavior is erratic. The Report Writer window may not close.</li> Repeat steps 4 and 5 for the Form Designer. Note that the same behavior occurs.</li> With the project window displayed, from the Tools menu, click Debugger. Note that the Project closes.</li> Click Delete to remove the project.</li></ol>

Additional query words: kbvfp600

Keywords: kbbug KB138473

-

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

© Microsoft Corporation. All rights reserved.