Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine if Field Exists
Message
From
13/02/2006 16:39:14
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01095976
Message ID:
01095979
Views:
15
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform