这段代码,为什么一运行就死呀
zhhh 2005-05-07 09:53:03 with adoquery1 do
begin
close;
sql.clear;
sql.text := 'select top 10 id,price,city,sj from stat where city=''北京'' and sbec=''1.0''';
open;
while not eof do
begin
dbchart1.Series[0].AddXY(fieldbyname(sj).asdatetime,fieldbyname('price').asfloat)
end;
end;
其中sj是字符型,代表时间,格式:2005-05-01