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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing text entry response trigger

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am a new user. I am trying to create a software simulation. In the actual software, the user enters an account number and can either press enter or click on an OK button. I can get the text entry with 'enter' to work (that's the easy part), but I can't figure out how to change the trigger for the text entry to a button or hot spot. Any suggestions would be greatly appreciated! Thanks!
 
There is a variable called EntryText that stores whatever the user types in the text entry field. So, what you can do is put your OK button in the same interaction as your text entry field. Then when the button is clicked, you can take the value of EntryText and act on it in whatever way is necessary.

For example:

ThisUserResponse=EntryText
--The following line shows the value of the variable in the debug window
Trace(ThisUserResponse)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top