Static i as integer
What will i be before I assign a value.
It seems to be just zero (0) but I wanted to confirm that.
Variables of all VB data types receive their respective default value when the procedure starts.
This includes initializing all numbers to zero, and all the other data types to their flavour of zero (vbNullString
for strings, not exactly the same as an empty string ""
, False
for booleans, Empty
for variants, and Nothing
for objects).