Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field Existence
Message
De
03/05/2001 10:05:38
David Brunelle
Université de Sherbrooke
Sherbrooke, Québec, Canada
 
 
À
03/05/2001 09:36:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00502953
Message ID:
00502996
Vues:
13
Thank you , I'll use this code well ... +)

>>Is there a way to verify if a field exist or not. I need this to make sure I don't try to add or remove twice the same field...
>
>If the table is in a DBC, you can check without ever opening the table with
>
>Set Database To mydatabase
>llFieldExists = INDBC("mytable.myfield", "Field")
>
>For any type of table
>
>USE mytable
>llFieldExists = FSize("myfield")>0
>
>** or
>
>llFieldExists = FSize("myfield", "mytableAlias")>0
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform