create dynamic array

Results 1 to 2 of 2

Thread: create dynamic array

  1. #1
    XK Guest

    Default create dynamic array

    How Can i do dynamic array ? I&#039s tried <BR>no = 5<BR>dim mArray (no)<BR>but can&#039t! how can I do?<BR><BR>thank for anyopne replies!

  2. #2
    Imar Spaanjaars Guest

    Default RE: create dynamic array

    You could try this:<BR>Dim no<BR>no = 5<BR>Dim myArray()<BR>Redim myArray(no)<BR><BR>If your array already contains data, use this:<BR><BR>Redim preserve myArray(no) <BR>to keep the data in the array and resize it.<BR>Note, if no is smaller than the current size, all data after no will be truncated.<BR><BR>Imar<BR>

Posting Permissions

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