Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB6 - Basics 1 - Dim what?
#5
Beres Wrote:
Joost Wrote:Dim A As Byte, B As Byte
A=1
B=1
Msgbox("A+B")
Now wont that just display "A+B" in the messagebox? It wont calculate it because its in strings.

Code:
MsgBox(A + B)
Thats the proper way.

Beres is correct. Joost would just show "A+B" and not actually perform any math.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)