Originally posted by honeybee
In VB you have to explicitly declare the data type of each variable, whether you use one Dim or separate Dim statements for them. If you don't declare it explicitly, it's cast as a Variant.
.
Thankfully, this counterintuitive structure has been fixed in dot net, and Dim the way Dongaman has it written behaves exactly as you would intuitively think (that is if you werent aware ...). I think everyone who has ever used VB has probably made this mistake ... I know I went quite some time without realizing ...