Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Free table
Message
From
29/01/2011 17:52:58
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01497780
Message ID:
01497798
Views:
55
>How I can know if a table is in a database and release?

INDBC() will tell you if a table is in the current DBC().


The backlink to a database container is in the header of the file. To find out if a table is in a DBC (and fine which one) you can examine the header with something like
USE myFile SHARED
lcHeader = LEFT(FILETOSTR(DBF()),HEADER())
lcDatabase = RIGHT(lcHeader,263)
If the first character is ASC(0) then the table is not in a DBC
Previous
Reply
Map
View

Click here to load this message in the networking platform