Global itself is not a datatype, but a scoping mechanism. It can be used in .bas modules, and means the same thing as Public in that context - it is a throwback to earlier versions of
VB and still remains to maintain compatibility, as far as I know.
However, what IS typing that variable is the ampersand "&". This is a short cut known as a type-declaration character, and the ampersand is typing the ErrorStatus variable as a long.
Woody Z
http://www.learntoprogramnow.com