Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quickly find field names in tables
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00037420
Message ID:
00037654
Views:
31
> When I use > IF ASCAN(aArray2,myfield) > instead of > FOR i = 1 TO ALEN(aArray2,1) > IF myfield = aArray2(i,1) > I get a Data Type mismatch error. I know that my array contains different > data types, since it comes from AFIELDS() but the help for the ASCAN > function implies that it shouldn't matter. Am I missing something? ASCAN() returns a numeric value, indicating the 'cell' in the array that contains the right value. You're checking it as if it returns a logical. Your code should read: IF ASCAN(aArray2,myfield) # 0 /Paul
Paul Russell
EMail: prussell@fox.nstn.ca
Phone: (902) 499-5043
Previous
Reply
Map
View

Click here to load this message in the networking platform