Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing a field with an unknown name
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00086557
Message ID:
00086707
Views:
35
>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform