samsung180
New Member
- Joined
- Nov 14, 2011
- Messages
- 2
I would like to set a variable (let's call it var) as having an initial value of 0.
I would like this to be set outside of a function so that when I run a function, var does not have its value always reset to 0.
For example, here is something similar to what I'd like:
Dim var As Integer
var = 0
Public Function justAnExample ()
var = var + 1
End Function
Any help? Thanks.
I would like this to be set outside of a function so that when I run a function, var does not have its value always reset to 0.
For example, here is something similar to what I'd like:
Dim var As Integer
var = 0
Public Function justAnExample ()
var = var + 1
End Function
Any help? Thanks.