Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know if a field exists within a table ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00367896
Message ID:
00367904
Views:
25
You can use afields() and ascan().
For example

afields(aArray, 'yourtablealias')
llFieldExists=ascan(aArray, 'yourfield')>0

HTH
Hugo
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform