Results 1 to 4 of 4

Thread: ReDim Preserve array

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    45
    Hi,
    I'm using a 2 dimention array and need to redim it which works fine with the statement below:
    Code:
    ReDim  sa_tableKeys(UBound(sa_tableKeys) + 1, 2) As String
    But as soon as I put "preserve" after ReDim, to preserve the information already stored within the array, I get an error. What am I doing wrong?

  2. #2
    Guest
    You can only redim the last dimension of a multidimensional array.

    Paul

  3. #3
    Lively Member
    Join Date
    Nov 2000
    Posts
    73
    check ur MSDN Redim preserve it says u cannot use the code

  4. #4

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    45
    Thank you PWNetle, that was exaclty my mistake!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width