DOCUMENT:Q138473 11-FEB-2000 [foxpro] TITLE :BUG: Code Window Closes Design Tools When Run from a Program PRODUCT :Microsoft FoxPro PROD/VER:WINDOWS:3.0,3.0b,5.0,5.0a,6.0 OPER/SYS: KEYWORDS:kbvfp kbvfp300bBUG kbvfp500aBUG kbvfp500bugkbbuglist ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 5.0a, 6.0 ------------------------------------------------------------------------------- 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 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. On the File menu, click New. Then click Program, and click the New button. 2. Enter the following text in the new program: MODIFY Report testr MODIFY Form testf MODIFY project testp 3. Save and Run the Program. 4. Right-click within the report window, and then click Data Environment. 5. 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. 6. Repeat steps 4 and 5 for the Form Designer. Note that the same behavior occurs. 7. With the project window displayed, from the Tools menu, click Debugger. Note that the Project closes. 8. Click Delete to remove the project. Additional query words: kbvfp600 ====================================================================== Keywords : kbvfp kbvfp300bBUG kbvfp500aBUG kbvfp500bug kbbuglist Technology : kbVFPsearch kbAudDeveloper kbVFP300 kbVFP300b kbVFP500 kbVFP600 kbVFP500a Version : WINDOWS:3.0,3.0b,5.0,5.0a,6.0 Issue type : kbbug ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2000.