Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display Tables Function?
Message
De
03/01/2008 16:54:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
03/01/2008 16:40:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01279358
Message ID:
01279360
Vues:
11
>Hello All,
>
>I'm looking for some assistance since the answer is not jumping out to me. Is there a function that will return all names of the tables within a database container?
>
>I've found the DISPLAY/LIST tables command but doesn't work for my purposes.
>
>What I'm trying to accomplish is this. I have a single DBC in which I'm housing a few tables to accommodate long field names. Since you cannot have 2 tables with the same name I'd like to be able to query the DBC to see if a given table already exists before trying to use the CREATE TABLE command to add the table into the DBC.
>
>I've tried using:
>
>dbgetprop( 'table_name', 'table', 'path' )
>
>but that doesn't work if the table name doesn't exist.
>
>Any help would be appreciated.
>
>Thanks!

Check adbobjects() and indbc().

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