Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find field number given it's name
Message
From
24/10/2007 22:35:56
Victor Chigne
Inteliventas
Peru
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01263411
Message ID:
01263418
Views:
10
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 #?
>>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform