Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing a field with an unknown name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00086557
Message ID:
00086707
Vues:
31
>>>The problem I'm having is referring to those fields that I don't know the name of. Actually, I know what the name is, but at run time, not at program time. The field name will correspond with the zone the user chooses.
>>
>>Examples...
>>
>>Use field(6) to reference the 6th fields name
>>use evaluate(field(6)) to reference the 6th field's value
>
>What if I don't know what number the field is?
>
>Thanks,

I guess you will know each zone, so you can loop through the fields until you get to the zone name that you want. If field(n) = "East Coast" (for example) then you have what you want.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform