Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if Field exists in a table
Message
De
30/03/2001 13:28:03
 
 
À
30/03/2001 12:43:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00490373
Message ID:
00490383
Vues:
14
>VFP 6.0 sp4.. How can I programmitically check a table to see if a field exists and then get the fieldtype,fieldwidth,precision property.
>
>TIA
>Rob

1)
llExists = FSIZE("myfield", "mytable")>0

2) (only if using dbc)
llExists = INDBC("mytable.myfield", "Field")

option 2) is especially good for determining if a field exists
before running a SQL statement containing that field, w/o having to open up the table first.
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform