On 8/13/14, 9:42 AM, Jeff Johnson wrote:
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?

OOP. Make a container or control class for your label and textbox. Set up some properties on the class referencing the label and the textbox. Override the .refresh() of the class to refresh those contained controls.

Paul


_______________________________________________
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.

Reply via email to