Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine if Field Exists
Message
De
13/02/2006 17:17:48
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01095976
Message ID:
01095997
Vues:
8
Hi Kirk

While vartype may work, and type should work, they will indicate a false positive result if a variable or an object.property exists when the field does not. FSIZE is more closely related to the concept of a field. If the size is 0, the field does not exist.

I think I learned that from Fabio Lunardon.

>Is there an easy way to determine if a field exists in a cursor?
>
>I tried VARTYPE(fieldname), but if the field isn't there, I get an error.
>
>Thanks
>
>Kirk
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform