Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference a control with the value of a variable
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00574091
Message ID:
00574129
Views:
32
< snip>
>>  *!* Here's where my prolem is
>>  *!* This doesn't work and I can't remember what will
>>  *ThisForm.&lcUpdateCity..Value = ZipCity.LwrCity
>>  *ThisForm.&lcUpdateState..Value = ZipCity.State
>  <b>
>   store ZipCity.LwrCity to ('thisform.'+m.lcUpdateCity+".value")
>   store ZipCity.State to ('thisform.'+m.lcUpdateState+".value")</b>
>>EndIf
>>
>>Select (lnOldArea)
>>
>
>
>Hi James,
>
>Sergey answered your question, but you don't need macros at all. See my changes in bold.

Good point! I recomend using name expression over macro substitution any time you can.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform