No. You can only redim the last element of an array...
Technically speaking...Similarly, when you use Preserve, you can change the size of the array only by changing the upper bound; changing the lower bound causes an error.
which means
Dim MyString() As String
Redim MyString(0 To 1) As Integer
Redim MyString(1 To 2) As String
would work... but...
Dim MyString() As String
Redim MyString(0 To 1) As Integer
Redim <strong>Preserve</strong> MyString(1 To 2) As String
would thrown error #9 subscript out of range
Good Luck
vb5prgrmr
Posting Virtuoso
1,912 posts since Mar 2009
Reputation Points: 156
Solved Threads: 296
Yes you can! Made a program and all. As long as you are not trying to preserved the data within the array you can dimension it to any lbound and ubound you want. However, if you are talking about the string then integer then you are correct. That is my typo.
vb5prgrmr
Posting Virtuoso
1,912 posts since Mar 2009
Reputation Points: 156
Solved Threads: 296