Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find field number given it's name
Message
De
24/10/2007 22:35:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01263411
Message ID:
01263418
Vues:
11
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 #?
>>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform