我用combobox 的条目做参数传递给ADODataSet后,有时(1/10的时候)Delphi会弹出
:write of address 0x0128c000,为什么啊最奇怪的是错误不是每次都能碰到的。

解决方案 »

  1.   

    我想先问一下,数据库中的float型的数据为空然后再计算是否会出现这种错误
      

  2.   

    where_str:='  prdtno='+''''+ComboBox1.Items[ComboBox1.Itemindex]+'''';
        where_str:=where_str+'  and    (orderdate>='+''''+datetostr(datetimepicker1.Date)+'''';
        where_str:=where_str+'  and  orderdate<='+''''+datetostr(datetimepicker2.Date)+''''+')';
        cmdtxt:=cmd_1;
        Insert('   where  '+where_str,cmdtxt,Pos('group',cmdtxt)-1);    try
           if dm_martpicture.T_avegeprice.Active then dm_martpicture.T_avegeprice.Close;
           dm_martpicture.T_avegeprice.CommandText:=cmdtxt;
        finally
           dm_martpicture.T_avegeprice.Open;
        end;
        where_str:='';
      

  3.   

    我用的是ado,delphi 6 ,会不会是Ado补丁的问题