jialge
7/7/2008 10:51:00 AM
Hello Joe,
As is mentioned in the quote of Cindy Winegarden [MVP]'s messages, there
are basically two types of tables (dbf).
1. Free table.
This type of table can be created by Foxpro->File menu->New->Table
It can exist without dbc files.
2. Table with a link to its database.
This type of table is created by Foxpro->File menu->New->Database (create a
dbc file)->New Table (create a dbf file)
If you move away dbc and open this type of dbf with foxpro, Foxpro pops up
an error message:
"C:\testdb\data1.dbc: The database for table 'C:\testdb\table1.dbf' could
not be opened. Would you like to try to locate the owning database or
delete the link (and free the table)."
By clicking the "Delete" button, the table will become a free table (of the
first type).
The error message "cannot open dbc" tells me that you are using a dbf file
of the second type. Please remove the link to dbc by the above-mentioned
method. Based on my own tests, your code snippet runs well as long as the
link is removed.
Regards,
Jialiang Ge (jialge@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================