Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine if Field Exists
Message
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:
01095978
Vues:
14
>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

TYPE() is the function you want you can even include the alias inthe type clause if the cursor isn't selected.
TYPE('ac_cursor->field') <> "U"
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform