A static variable has the same scope as a Dim (or Private) variable and
you shove it in a routine.
The difference between a static variable and a normal variable is that the
value of the static variable is NOT destroyed when the routine is left.
However, the scope of the variable is that so it can only be accessible
from the routine itself.
In other words it's half way between a global and a private variable.
Now, I have never placed one at module level before. In fact, I have no
idea if this is allowed; the reason that if I need a static variable at
module level then I ought to be looking at a class rather than a module.
Hope this makes some semblance of sense.
Cheers
- Malc
www.dragondrop.com