Is it possible to declare variables within a loop.
For example if I wanted say 1-20 differnt variables defined according to what a user wanted can you declare a variable using the incremented number itself?
So like
VB Code:
For X= 1 To Test Dim Result(Test) as String Result(Test) = (Insert some unimportant code here) Next X
Does that work or how would I need to change it to work like that? (if its even possible) Or am I stuck using obsurbly long if statements to determine all that?
DAve




Reply With Quote