The information in this article applies to:
SUMMARY
The structure of FoxPro tables has changed with the release of Visual
FoxPro 3.0. Visual FoxPro 3.0 now has a database container file with the
extension .DBC that contains references to tables, but does not contain
the tables themselves. Like previous versions of FoxPro, the tables still
reside in their own .DBF files.
MORE INFORMATIONFree TablesHere is some sample code to open the Foxuser.DBF table:
Database TablesHere is some sample code to open the Employee.DBF table that resides in the Tastrade.DBC database container:
When Visual Basic accesses a Visual FoxPro "database table," it uses the .DBC file to list and locate .DBF files. Visual Basic does not use the .DBC file to determine the structure of the .DBF files; that information is obtained by examining the .DBF file itself. This means that long field names, which Visual FoxPro stores in the .DBC file, will not be accessible in Visual Basic. For example, the above sample that reads the Employee table will have an Employee ID field "Employee_I" instead of "Employee_ID" because the .DBF file does not store the long field name. Another ramification of reading the linked tables directly is that Jet marks these tables as read-only because all the Referential Integrity rules for a table are stored in the database container file. Visual FoxPro free tables are also read only. NOTE: The 16-bit edition of Visual Basic version 4.0 cannot read files in the Visual FoxPro version 3.0 format without a third-party ODBC driver. REFERENCES
For more information explaining why the Visual Basic Data Control does not
list all possible Visual FoxPro connect properties, please see the
following article in the Microsoft Knowledge Base:
Q140770 : PRB: Accessing Visual FoxPro 3.0 Files from Visual Basic 4.0 Additional query words:
fox foxpro dbc open dbf xbase kbVBp600 kbVBp400 kbdse
Keywords : kbGrpVBDB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |