Add two numbers using only one text box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nilesh3
    New Member
    • Nov 2008
    • 5

    Add two numbers using only one text box

    I want to add two nos. by using only one text box and 2 command boxes 1st for + and another for =.
  • smartchap
    New Member
    • Dec 2007
    • 236

    #2
    Dear Nilesh
    U do one thing. Type a number in the text box, use one variable, say number1. When u click command '+' the number in textbox must be stored in number1 and textbox is cleared. Now type another number. When u press command button '=' make

    Number1 = Number1 + val(Text1.Text)
    Text1.Text= Number1

    Now the sum of both the numbers appears in the textbox.

    If any other problem do ask. If solved kindly acknowledge.

    Comment

    Working...