How To Use Visual FoxPro Tables in Visual Basic (161307)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q161307 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.
The structure of a Visual FoxPro table depends upon whether that table is
included in a database container. A table not included in a database
container is called a "free table" and its structure differs from a
"database table." Visual Basic must know which type of table it is trying
to access in order to know how to read the structure of the table.
With Visual FoxPro "free tables," Visual Basic recognizes these files much
like it recognizes older FoxPro tables. Visual Basic's database object
corresponds to the directory in which the "free tables" reside. However,
with "database tables," the Visual Basic database object corresponds to the
Visual FoxPro .DBC file, which contains reference to the "database tables."
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:
140770
: PRB: Accessing Visual FoxPro 3.0 Files from Visual Basic 4.0
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto KB161307 |
---|
|