Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check if a table is in a database
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01228412
Message ID:
01228414
Views:
23
Hi,

>Is there a way to check if a table is free or part of a database?

After you opened the table, you can use
CursorGetProp("Database")
to find the database of a table. If the return value is empty, you are dealing with a free table. If you don't want to open the table, you have to check the header for the version. The help file contains a description of the DBF header structure.
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform