Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB6 - Basics 1 - Dim what?
#2
[spoiler]Private Sub cmdAdd_Click()
Dim A As Double
Dim B As Double
Dim Result As Double

' Assign the textbox input to our variables
A = Str(txtVal1.Text)
B = Str(txtVal2.Text)

' Add our varibles together
Result = A + B

' Display the result
lblResult.Caption = Str(Result)
End Sub[/spoiler]
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)