Well, actually, the code doesn't work for me. it works great for fields 2 and 3 but for field physically in number 5 it gives me 3.
It's weird. I put a combobox populated with field names and the field is actually the third, but if you do a brow or a modi structure it's in the 5th position.....
Both methods, yours and mine, gives the correct result from ascan.....the problem is that the physical fields aren't in ascan order....
>You're welcome.
>
>>It's a parameter for a third party library which reads ARC/GIS SHP files, stored in DBFs.
>>
>>Thanks for the code!
>>
>>
>>>
>>>= AFIELDS(laList)
>>>lnFieldNo = ASCAN(laList, lcFieldName, -1,-1,1,1+2+4+8)
>>>
Why do you need a field #?
>>>