PRB: Cannot Open a General Field from a FoxPro 2.x Table

Last reviewed: April 30, 1996
Article ID: Q128060
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.6 and 2.6a
  • Microsoft Visual FoxPro for Windows, version 3.0

SYMPTOMS

In Visual FoxPro version 3.0, if you open the Object General field in the OLETABLE sample table that shipped with FoxPro version 2.6 for Windows, you see this error:

   OLE object is invalid or corrupted.

CAUSE

The error is specific to this particular table. The structure of the OLETABLE sample table has an obsolete format that was used in pre-released versions of FoxPro version 2.5. FoxPro version 2.6 can read this obsolete format, but Visual FoxPro version 3.0 cannot.

WORKAROUND

Update the table in FoxPro version 2.6 for Windows:

  1. Run FoxPro version 2.6 for Windows, and open the OLETABLE file with the USE command.

  2. Browse the table by using the BROWSE command and open the OBJECT General field by double-clicking to activate the OLE server.

  3. Modify the field in some way, but don't save the changes.

Repeat these three steps for records number 1, 2, and 3. This will cause the table to be saved in a FoxPro version 2.6 format. Once it is in a version 2.6 format, you will be able to open it and browse it in Visual FoxPro for Windows.

STATUS

This behavior is by design.


Additional reference words: 3.00 VFoxWin backward
KBCategory: kbenv kbprb kberrmsg
KBSubcategory: FxenvGeneral


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: April 30, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.