Andy2004
01-30-2008, 11:05 AM
(sorry if this is the wrong forum or something)
Is it possible to define an arrays name with a string?
for example
Dim arrayname As String * 1
arrayname = "A"
ReDim arrayname(10) as string
and the arrary would come out, A(1), A(2), A(3) etc.
The reason i want to so this is because i want to use a loop to create arrays, after the first loop i will increment the "A" to a "B" and soo on. At the moment my efforts result in,
Compile Error: Expected Array
Hope you can help, and thanks for reading this.
Andrew
Is it possible to define an arrays name with a string?
for example
Dim arrayname As String * 1
arrayname = "A"
ReDim arrayname(10) as string
and the arrary would come out, A(1), A(2), A(3) etc.
The reason i want to so this is because i want to use a loop to create arrays, after the first loop i will increment the "A" to a "B" and soo on. At the moment my efforts result in,
Compile Error: Expected Array
Hope you can help, and thanks for reading this.
Andrew