cs:array of array of string;
      setlength(cs,i,3);
      cs[i,0]:='总任务书';
      cs[i,1]:='任务书';
      cs[i,2]:='年月日';
      i:=i+1;为什么总提示错误:access violation at address 0049fc2b in module……

解决方案 »

  1.   

    i:=5;
     setlength(cs,i);
     for j:=0 to 4 do
      setlength(cs[j],3);
     for j:=0 to 4 do
     begin
          cs[j,0]:='总任务书';
          cs[j,1]:='任务书';
          cs[j,2]:='年月日';
     end;
      

  2.   

    i:=xxx;//假设
     setlength(cs,i);
     for j:=0 to i-1 do
      setlength(cs[j],3);
     for j:=0 to i-1 do
     begin
          cs[j,0]:='总任务书';
          cs[j,1]:='任务书';
          cs[j,2]:='年月日';
     end;
      

  3.   

    上面已将了
    没什么好补充了http://lysoft.7u7.net