mtairhead
Registered User.
- Local time
- Today, 05:20
- Joined
- Oct 17, 2003
- Messages
- 138
What is the proper way to pass an integer?
I have this function and sub:
...But I get an overflow error when I run test().
I suspect it's how I pass the variable.
~Andrew
I have this function and sub:
PHP:
Public Function testpassing(number3 As Integer)
testpassing = number3 + 20
End Function
Public Sub test()
Dim test2 As Integer
test2 = 189704
msgbox(testpassing (test2))
End Sub
...But I get an overflow error when I run test().
I suspect it's how I pass the variable.
~Andrew