Results 1 to 2 of 2

Thread: Array

  1. #1
    Patrice Guest

    Default Array

    I have problem with array!! I have this problem: subscript out of range ???<BR><BR>Here is my code: <BR><BR>Dim outputarray(1,3)<BR>arraycount = 0<BR> <BR>while not GetPrizeInfo.EOF<BR> Redim Preserve outputarray(arraycount,3) <BR> outputarray(arraycount,0) = GetPrizeInfo("TheSum")<BR> outputarray(arraycount,1) = GetPrizeInfo("NumOfDays")<BR> outputarray(arraycount,2) = GetPrizeInfo("TheRatio")<BR> <BR> arraycount = arraycount + 1<BR>GetPrizeInfo.movenext<BR>wend<BR><BR>Can someone have a solutions ???

  2. #2
    Join Date
    Dec 1969

    Default Your array is too small

    You redimension it to 0, it has to be as big as the amount of elements you want to put in it!

Posting Permissions

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