lcImf= "imf" lcTxt= "txt"+lcImf thisform.&lcTxt..value = myobj.&lcImf. thisform.&lcTxt..refresh()
HTH, E. On Wednesday, August 13, 2014 2:30 PM, Richard Kaye <[email protected]> wrote: > > >Got it. You didn't mention the table part in your initial post. :-) > >We have a similar data-driven mechanism that's allows us to not only translate >UI elements but also change other property values at run-time. The table >stores the form/container name, the contained object name, the property to >change and then the value to set it to. > >-- > >rk >-----Original Message----- >From: ProfoxTech [mailto:[email protected]] On Behalf Of Jeff >Johnson >Sent: Wednesday, August 13, 2014 1:20 PM >To: [email protected] >Subject: Re: Proper way to reference a control > >Richard: I am creating a method in all of my labels. When you double click >on the label it looks up a value and places it in the corresponding text box. >In order for it to work I need to reference the field in the lookup table and >the textbox based on the name of the label. I hope this makes sense, but >Ken's response was exactly what I was looking for. > > > >On 8/13/2014 10:11 AM, Richard Kaye wrote: >> Maybe I'm missing something here but instances of objects are variables? Or >> is the question how does thisform know about the existence of myobj? >> >> -- >> >> rk >> -----Original Message----- >> From: ProfoxTech [mailto:[email protected]] On Behalf Of >> Jeff Johnson >> Sent: Wednesday, August 13, 2014 12:43 PM >> To: [email protected] >> Subject: Proper way to reference a control >> >> I want to assign a value to a control and then refresh it: >> >> thisform.txtimf.value = myobj.imf >> thisform.txtimf.refresh() >> >> Where txtimf is a textbox and myobj.imf is a property of an object >> >> I want to generalize this process with variables: >> >> thisform.txt ? .value = myobj. ? >> thisform.txt ? .refresh() >> >> and I can't seem to get it right. >> >> Any ideas? >> [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

