Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting list of PKs for All Tables
Message
De
24/02/2003 05:38:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00756362
Message ID:
00756897
Vues:
14
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform