Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

updating variables

Status
Not open for further replies.

mettodog

Vendor
Jul 11, 2000
94
US
i have this code in my prog.:

dim text as string
text = text1.text

text1.text = "hello"

text2.text = text

if i change the contents of text1, via a text box, text2 stays still says hello. why? and how can i update this? i heard something about using a forms change event...
 
no, i was wonderning how to use the change event though.
 
Change event is triggered on an object every time its value changes. Try to put your code in Text1_Change but eliminate the line

text1.text = "hello"

coz it will force text on Text2 stays with [user input]'hello'.

Good Luck :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top