How can i declare a variable inside the function, so that i can update it example:
function
{
dim counter as integer
integer++
}
i mean something like this so everytime that i call the function it adds 1 to the integer
(@@$$** i dont want to use a global variable **$$@@)
Visual basic ==%26gt;?
Declare is outside the function and then pass the variable to the function. This way "counter" won't be reset each time the function executes.
Reply:Your increment should be
counter++
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment