>In an array, I have a definition of the fields of my table. So, the first row contains all the field names. When I use ASCAN to find a specific field name, it will locate the proper row. However, assuming I want to search for field name NOM and that I have another field NOMEMBER which is placed before NOM in the array, NOMEMBER will be found before NOM. How can I force ASCAN to be precise?
I guess you are talking about VFP 6 because in VFP 7 ASCAN has a parameter to control exact comparison.
1. When You create array pad field names to the MAXLEN and than ASCAN(myarray, PADR(filedname, MAXLEN))
2. Write FOR loop to scan thru array and do exact comparison using == operator.
--sb--