select count(*) from tablename 得到数据量得大小,作为Max值,然后导入一条加1呀
ProgressBar1.Max := AdoDataSet.RecordCount; while not AdoDataSet.Eof do begin 执行导数据; ProgressBar1.Position := ProgressBar1.Position + 1; AdoDataSet.Next; end;
MaxValue 最大值 MinValue 最小值 Position 当前值 StepIt 当前值加一我想你知道这些应该就够用了。
ProgressBar1.Max := AdoDataSet.RecordCount; while not AdoDataSet.Eof do begin 执行导数据; ProgressBar1.Position := ProgressBar1.Position + 1; AdoDataSet.Next; end;
while not AdoDataSet.Eof do
begin
执行导数据;
ProgressBar1.Position := ProgressBar1.Position + 1;
AdoDataSet.Next;
end;
MinValue 最小值
Position 当前值
StepIt 当前值加一我想你知道这些应该就够用了。
while not AdoDataSet.Eof do
begin
执行导数据;
ProgressBar1.Position := ProgressBar1.Position + 1;
AdoDataSet.Next;
end;