I want to add two nos. by using only one text box and 2 command boxes 1st for + and another for =.
How to add two nos. using only one text box?
Collapse
X
-
Yeah..it is possible.
Prompt the user to enter a number in the text box.
Extract that into a variable and clear the textbox if the user clicks '+'.
If the user enters another number and presses '+' add the textbox content to that variable and so on..
Finally display that variable in your textbox when the user presses '='.
Comment