Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting list of PKs for All Tables
Message
From
24/02/2003 05:38:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00756362
Message ID:
00756897
Views:
10
>Does anyone have an easier way to get a list of tables in a DBC and the associated PK expressions for EACH table? I can obviously do looping through an array of tables with a DBGETPROP(), TAG(), KEY(), etc. I was hoping for a better way without having to USE each table. This will be for a VFP8 DBC. TIA!
OPEN DATABASE myDBC
ADBOBJECTS(arrTables,"TABLE")
FOR EACH cTable IN arrTables
 ? cTable,DBGETPROP(cTable,"TABLE","PRIMARYKEY")
ENDFOR
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform