Does anyone have any information on two dimensional arrays. I am using a tutorial and I frequently come across dim statements that use % after the variable name.
i.e. Dim ratx%(2, 2), raty%(2, 2), ratpos%(2, 2)
The "%" is called a "type specifier". It's a leftover from pre-Visual versions of Basic. The most familiar one is "$" for strings, which is retained on the names of certain string functions to distinguish them from versions that return Variants.
Type specifiers are considered archaic. It's hard to remember which one goes with which data type. With VB, Microsoft stopped inventing new type specifiers for new data types, so you can't even use them consistently. Rick Sprague
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.