L
lingmao3
Unregistered / Unconfirmed
GUEST, unregistred user!
我想加一个进度条,怎么加?procedure Tformxjbzzlxx.SpeedButton1Click(Sender: TObject);begin adoquery1.Close; adoquery1.Sql.Clear; adoquery1.sql.Add('select pdf文件 from 资料信息 where id='+EditCodeid.Text); adoquery1.Open; if adoquery1.recordcount=0 then begin //6 showmessage('没有记录,不能查看'); exit; end; //6 if ADOQuery1.FieldByName('pdf文件').IsNull then begin showmessage('没有文件,不能查看'); exit; end; TBlobField(ADOQuery1.FieldByName('pdf文件')).SaveToFile(ExtractFilePath(Application.ExeName)+'/ini/lintemp.pdf');//下载文件,这时最慢,想加进度条. end;