is it Array have limited in javascrip code?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SeeMe
    New Member
    • Mar 2008
    • 18

    #1

    is it Array have limited in javascrip code?

    i have a question. May i know is it array had limited? Because once read more than 5000 something that show an error and can not continue to count. My data more than 10000 rows. My program show in below. Is it my program had problems? Got others way can slove?

    var a = new Array();
    var b = new Array();
    var c = new Array();
    var d = new Array();
    var e = new Array();
    var f = new Array();
    function id_list()
    {
    <?
    $myFileName = "data/list.txt";
    $fh = fopen($myFileNa me, "r");
    $Read = fread($fh, filesize($myFil eName));
    fclose($fh);
    $list = explode("?", $Read);
    $x= count($list);

    for($i=0; $i<$x; $i++)
    {
    $list_data = explode(";", $list[$i]);
    ?>
    a[<? echo $i ?>] = "<? echo $list_data[1] ?>";
    b[<? echo $i ?>] = "<? echo $list_data[2] ?>";
    c[<? echo $i ?>] = "<? echo $list_data[3] ?>";
    d[<? echo $i ?>] = "<? echo $list_data[4] ?>";
    e[<? echo $i ?>] = "<? echo $list_data[5] ?>";
    f[<? echo $i ?>] = "<? echo $list_data[6] ?>";

    <?
    }
    ?> }
  • SeeMe
    New Member
    • Mar 2008
    • 18

    #2
    i try to set the limit like
    <script> a = new array(15000); </script>
    then also can not run.

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Please read the forum guidelines on how to post questions (code tags)

      Regards.

      Comment

      Working...