Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know if a field exists within a table ?
Message
De
10/05/2000 21:39:52
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00367896
Message ID:
00368390
Vues:
22
Hi!

Try FSize("fieldname", "Alias")
if the return value from FSize() is greater than 0 then that field exist's

e.g.

if FSize("customer_id", "customer") > 0 then
? "Field Exist's"
else
? "Field does not Exist"
endif

Sarosh

>Type() doesn't seem to work for a table field.
>
>Is there any other way?
>
>Thanks
>Eric
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform