PRB: Accessing Visual FoxPro 3.0 Files from Visual Basic 4.0Last reviewed: September 25, 1997Article ID: Q140770 |
The information in this article applies to:
SYMPTOMSWhen you attempt to open a Microsoft FoxPro for Windows database file by connecting the database file to a Data Control in a Visual Basic version 4.0 program, the DatabaseName dialog box selects only files with the .dbf file name extension. Moreover, if you select a file with the .dbc file name extension, the DatabaseName property of the Data control displays the path without the file name.
CAUSEThis behavior occurs because the Data control in Visual Basic assumes that a .dbc file is an unlinked FoxPro 3.0 table. The 16-bit edition of Visual Basic version 4.0 cannot read files in the Visual FoxPro version 3.0 format.
RESOLUTIONUse the following steps to work around this problem:
STATUSMicrosoft has confirmed this to be a problem in Visual Basic version 4.0 for Windows. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONFoxPro 3.0 Databases and their associated linked tables are read-only in the 32-bit edition of Visual Basic version 4.0. The 16-bit edition of Visual Basic version 4.0 can read files in the Visual FoxPro version 3.0 format with the .dbc or .dbf file name extension. FoxPro creates three types of files that Visual Basic can open through Data Access Methods.
If you get the error, "Cannot Access the Bound FoxPro 3.0 bound DBF file," the Data control is attempting to access a linked table as a stand alone table. Follow the steps shown in the Workaround section to eliminate this error message.
Steps to Reproduce Problem
|
Additional query words: update readonly
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |