更正以下:还是错,运行不错,显示不出???begin
with ADODataSet1 do begin
      close;
    CommandType:=cmdText;
  commandText:='select productToFactory from productlist where productToFactory<1';open;
while not ADODataSet1.eof do begin
        mych:=ADODataSet1.FieldByName('productToFactory').asstring;
        mych1:=copy(mych,1,1);
        if mych1='0'  then  begin QRDBText5.Caption :=format('0%s',[mych]);exit;end//next;
end;
end;