Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Test the presence of a DBF in a DBC
Message
De
01/10/2001 05:44:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/10/2001 05:10:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00562415
Message ID:
00562422
Vues:
17
>I found !
>The answer is INDBC()
>Sorry!

Roland,
At first look it's INDBC(). But be carefull it might trap you. Indbc() returning .t. doesn't mean the table you're querying is really in that DBC. Suppose you have 2 tables both named mytable.dbf where one is free actually.
Indbc() would return .t. for both of them (there is mytable as a table object).
You must explicitly check if it's the one you're looking for. You can do it :
use myTable
? dbf('mytable'),cursorgetprop('Database','mytable'),dbgetprop('MYTABLE','TABLE','PATH')
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