SubScript out of range...

Results 1 to 2 of 2

Thread: SubScript out of range...

  1. #1
    Join Date
    Dec 1969

    Default SubScript out of range...

    Hey all,<BR><BR> Getting a "Subscript out of Range" error when trying to Redim an Array. If I am Redimensioning it how can it be out of range?<BR><BR>Any Suggestions?<BR><BR>Thanks...<BR><BR>Jim Remsik<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: SubScript out of range...

    Are you trying to ReDim Preserve a two-dimensional (or three- or four- or ...) array?<BR><BR>If so, read the VBScript documentation on ReDim:<BR><BR>**** QUOTE ****<BR>If you use the Preserve keyword, you can resize only the last array dimension, and you can&#039t change the number of dimensions at all. For example, if your array has only one dimension, you can resize that dimension because it is the last and only dimension. However, if your array has two or more dimensions, you can change the size of only the last dimension and still preserve the contents of the array. <BR>*** END QUOTE ***<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