- Home /
Question by
TheNicojack · Dec 29, 2017 at 11:53 AM ·
buttonstextfieldnumbers
How to connect the strings i get ftom pressing buttons
Hello everyone. So I have 10 buttons labled with the numbers 0-9, I managed to let the buttons write their numbers into a textfield when I click on them, but everytime I click on a new button, the previous number gets overwritten and I need it to remain to be able to show numbers like 12, 34 and so one. I hope that some of you can help me with that. ^^
Comment
Answer by Elisvaldo · Dec 29, 2017 at 11:57 AM
Instead of making something like textfield.text = button.text
;, make it instead textfield.text += button.text;
. You can add strings :)
Your answer
Follow this Question
Related Questions
Remote KeyPad with Buttons 1 Answer
Using Buttons to write numbers 3 Answers
make texfield accept numers only 1 Answer