Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine if Field Exists
Message
De
13/02/2006 16:39:14
 
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:
01095979
Vues:
17
>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

Hi Kirk,
What kind of error do you get? I did a simple test on a created cursor and a cursor derived from an sql select. When I typed
? vartype(fieldname)
for a non-existent field I get a "U" (unknown) returned but no error.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform