for inti:=1 to 12 do begin
/在这里添加    if i=11 then exit;
                 str1:='vwbbjx';
                 if inti<10 then
                   str1:=str1+'0'+inttostr(inti)
                 else
                   str1:=str1+inttostr(inti);
                 ModifyTake(query2,str1);
               end;

解决方案 »

  1.   

    for inti:=1 to 12 do begin
                     str1:='vwbbjx';
                     if inti<10 then
                       str1:=str1+'0'+inttostr(inti)
                     else if (i=11) then
                              continue  //增加这一句
                          else
                             str1:=str1+inttostr(inti);                 ModifyTake(query2,str1);
                   end;
      

  2.   

    for inti:=1 to 12 do 
    begin
      if inti=11 then continue
      else begin
        str1:='vwbbjx';
        if inti<10 then
          str1:=str1+'0'+inttostr(inti)
        else
          str1:=str1+inttostr(inti);
        ModifyTake(query2,str1);
      end;
    end;
      

  3.   

    不好意思,刚才没有注意,不过只要把我添加的那句里的exit改成continue
    就好
      

  4.   

    for inti:=1 to 12 do begin
                    if inti=11 then Break else//新加的 
                    begin //新加的
                    
                        str1:='vwbbjx';
                        if inti<10 then
                            str1:=str1+'0'+inttostr(inti)
                        else
                            str1:=str1+inttostr(inti);
                        ModifyTake(query2,str1);
                    end;//新加的
              end;