On 8/14/2014 6:29 AM, Paul McNett wrote:
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
Thanks Paul & everyone else. I did make a label class that did all the
work. The label and the textbox have the same name lblmyfield and
txtmyfield and the look up table has the field myfield. Double click on
the label looks up the amount in the look up table and places it in the
text box. Of course it does nothing if all three conditions are not met
- everything named correctly and the look up table is available. Using
Ken's information I have it working perfectly.
-- Jeff Jeff Johnson [email protected] SanDC, Inc. (623) 582-0323 SMS
(602) 717-5476 Fax 623-869-0675 Visit our forum at
www.san-dc.com/forum Register and join in the discussion
www.san-dc.com www.cremationtracker.com www.agentrelationshipmanager.com
_______________________________________________
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.