Guest User

Calculator

a guest
Aug 24th, 2014
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Dim Operation As Integer
  2.  
  3.  
  4.  
  5. Private Sub CmdClear_Click()
  6. TxtAnswer.Text = ""
  7. End Sub
  8.  
  9. Private Sub CmdDot_Click()
  10. TxtAnswer.Text = TxtAnswer.Text + "."
  11.  
  12.  
  13. End Sub
  14.  
  15. Private Sub CmdNum_Click(Index As Integer)
  16.  
  17. TxtAnswer.Text = TxtAnswer.Text & Index
  18.  
  19. End Sub
Advertisement
Add Comment
Please, Sign In to add comment