Hey,
I have to build an addition calculator. in the application interface should have a label on top which displays the number you clicked then under the label a running total label and then under than there should be a keypad with numbers from 0-9 and a plus sign. my plus sign should react as an equal button. so if i click 3 then + and then click 4...to see 7 i must click the plus button again. so to add a number o the sum the addition button must be clicked
heres what i have so far but i think im way off...i got frustrated because i tried different possibilities but i dont think i have the right idea.. id really appreciate it if someone can help me out
Option Explicit
Dim intTotal
Private Sub Form_Load()
intTotal = 0
lblTotal.Caption = intTotal
End Sub
Private Sub lbl1_Click()
lblClicked = 1
End Sub
Private Sub lbl2_Click()
lblClicked = 2
End Sub
Private Sub lbl3_Click()
lblClicked = 3
End Sub
Private Sub lblPlus_Click()
intTotal = lblClicked + lblClicked
End Sub