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

Question from a novice... 1

Status
Not open for further replies.

kiom1202

Technical User
Mar 12, 2001
1
FR
Hi there !
I'm trying to get a set of buttons active.
I need my buttons (0 to 9) to fill a password field with their value (0 to 9) and then to compare the string to another. I'm only able to fill this password field with keyboard but not with my buttons.
Any help would be appreciated.
Many thanks

Kiom
 
You'll have to think backwards for that one. The textfield you are using for key input holds a variable ... the way you have it working at the moment is that the user inputs that variable with the keys, and the variable is checked against a legitimate password to see if it is correct.

If you want button input, your buttons will have to make the variable directly, by appending each of their values to the existing variable string. The only function of the textfield in this instance is to show how many characters the user has input.

I hope you got that ... it's difficult to explain. If you need any more help, feel free to email me directly, or just post here again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top