C chinatwt Unregistered / Unconfirmed GUEST, unregistred user! 2007-01-09 #1 用一个按钮清除掉chart中如何清除已画出的series线?
C chinatwt Unregistered / Unconfirmed GUEST, unregistred user! 2007-01-09 #4 怎么提示:List index out of bounds(-1)错误???
M moolleychean Unregistered / Unconfirmed GUEST, unregistred user! 2007-01-09 #7 Chart1.series[Index].clear, 你的Index=-1了。
C chinatwt Unregistered / Unconfirmed GUEST, unregistred user! 2007-01-09 #8 出错是提示=-1,但我直接写series2.clear;也是不行的,郁闷.....
J jwei119 Unregistered / Unconfirmed GUEST, unregistred user! 2007-01-09 #9 Chart1.Series.Count>0,才可以Chart1.Serie.Clear;
C chinatwt Unregistered / Unconfirmed GUEST, unregistred user! 2007-01-09 #10 唉,现在又没出啥错,就是清除不了画出的线: if chart1.SeriesCount>0 then begin for i:=1 to chart1.SeriesCount-1do begin chart1.Series.Clear; end; end;
唉,现在又没出啥错,就是清除不了画出的线: if chart1.SeriesCount>0 then begin for i:=1 to chart1.SeriesCount-1do begin chart1.Series.Clear; end; end;
Z zylsoft Unregistered / Unconfirmed GUEST, unregistred user! 2007-01-09 #11 if chart1.SeriesCount>=0 then begin for i:=0 to chart1.SeriesCount-1do begin chart1.Series.Clear; end; end;
if chart1.SeriesCount>=0 then begin for i:=0 to chart1.SeriesCount-1do begin chart1.Series.Clear; end; end;
C chinatwt Unregistered / Unconfirmed GUEST, unregistred user! 2007-01-09 #14 我试了,还是不行呢,都快崩溃了,数据是从串口获得的。
C chinatwt Unregistered / Unconfirmed GUEST, unregistred user! 2007-01-09 #15 搞定了,在下面加些初始化chart的代码就OK了,呵呵,散分!