FIX: Visual FoxPro Doesn't Save File as Expected

Last reviewed: January 8, 1996
Article ID: Q141835
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0

SYMPTOMS

Under some circumstances, Visual FoxPro will allow you to save a form when it shouldn't. For example, if you create a form that contains an OLE Container object, and then launch an editing session of the contents of that object, you should not be allowed to save the form until the editing session is closed.

WORKAROUND

Close all OLE object editing sessions before saving your form

-or-

Upgrade to Visual FoxPro 3.0b.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in FoxPro version 3.0b for Windows.

MORE INFORMATION

Steps to Reproduce Problem

  1. Open or switch to Microsoft Visual FoxPro.

  2. Type MODIFY FORM TEST in the Command window.

  3. Place an OLE Container Control on the form, this will invoke the Insert Object dialog box. Click Create New, select Microsoft Word 6.0 Document, and then click OK.

  4. When Word is in-place active, on the Insert menu, click Object. This invokes the Object dialog box. Select Microsoft Excel Worksheet, and click OK.

  5. After Microsoft Excel comes up, on the File menu, click Open to invoke the Open dialog box.

  6. Switch back (ALT+TAB) to Visual FoxPro, and on the File menu, click Save. Note that Visual FoxPro appears to save the form even though there are objects on it that are currently being edited.

When these steps are followed in Microsoft Visual FoxPro 3.0b, the following message is displayed:

   This action cannot be completed because the other application is busy.
   Choose 'Switch To' to activate the busy application and correct the
   problem.


Additional reference words: 3.00 VFoxWin buglist3.00 fixlist3.00b ole
object
KBCategory: kbother kbfixlist kbbuglist
KBSubcategory: FxotherGeneral


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.

Last reviewed: January 8, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.