Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SDT Meta Files, DBC's, and Free tables.
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00482467
Message ID:
00482702
Views:
13
>Is there a way to add all your Free tables to a DBC automatically, or to SDT's meta file automatically? We use only free tables, and I would rather not have to add in each table manually.

Use code similar to the following:
oMeta = newobject('DBCXMgr', 'DBCXMgr', '', .F., '<path to DBCXREG.DBF>',
.T.)
oMeta.Validate('!table1.dbf', 'Table')
oMeta.Validate('!table2.dbf', 'Table')
etc.
You could use ADIR() to get a list of all free tables in a directory and then call Validate in a loop.

Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform