Dim varname% is the ancient BASIC syntax for " varname is an integer". This was a very long time in the history of the BASIC family and is supported in Visual Basic.NET (although I personally would not recommend it - it can be quite opaque as you discovered).
michaelb958
source share