I am pretty sure that I have seen somewhere how to dimension a number of variables (on one line) that are the same type. For instance...
Dim Name, Address, State as string
I have read somewhere that you generally don't want to do that"
So if I understand correctly, this means that I can't do what I looking to do. I wanted to use the Dim function to dimension a whole mess of String variables, but I didn't want to type "string" after each of them.
Well, what i'm saying is solution that I gave you isn't usually what people use. You could do it, but from what I have read it's not a good coding technique.
And you definately can't do what you are wanting to do.
Now, if you don't care if if the variable is considered a variant, you don't have to declare them at all. Also this isn't considered good coding, but you can do it. Variants take up more memory, so you'll just have to weigh that in your decision making.
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.