• Subscript out of range error

    By Jerry Gassie/Forsythe 2 decades ago

    Subscript out of Range Error occurs in this part of the code…



    • Solution already provided

      By Simone Chemelli 2 decades ago

      Please take a look in the DOcs page at this link:



      http://www.openntf.org/Projects/pmt.nsf/HomeLookup/C5CE2FF6DE80CAE588256D6B00568C78?OpenDocument



      Regards,



      Simone

    • Can you give more infos ?

      By Renaud Thievent 2 decades ago

      Jerrie,



      If the problem doesn't come from what Simone said, can you tell me what is the value of the variable "i" ?



      Thanks



      Renaud

      • By Per Bau 2 decades ago

        When i see this problem the value off i is 1000. and x is also 1000



        /Per

        • Try this...

          By Renaud Thievent 2 decades ago

          In the ClassMailLogAnalyse Script library, search SortArray sub (the one that causes the error).



          Than modify the loop indexes from


              For j=0 To x <br/>
                  For i=0 To x <br/>
          



          to


              For j=0 To x -1<br/>
                  For i=0 To x -1<br/>
          



          And let me know if it fixes the problem.



          Renaud

          • Bingo Bongo :-)

            By Per Bau 2 decades ago

            Thanks Renaud,



            It seems to have fixed the problem.



            /Per