Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi-dimensional Arrays

Status
Not open for further replies.

peter11

Instructor
Mar 16, 2001
334
US
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)

I am not sure what this does?

Thanks Pete
 
It says the variable you are declaring is an integer

PK Odendaal
pko@mweb.co.za

 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top