2017年8月18日

Delphi导出数据的多种方法

摘要: //Dxdbgrid,则直接用SaveToexcel即可//使用 ExcelWithOdbc 控件function TDataModule1.GetDataToFile(DsData: TObject): Boolean; //用于将数据导入文件中var DataSet: TCustomADODat 阅读全文

posted @ 2017-08-18 20:24 癫狂编程 阅读(1553) 评论(0) 推荐(0) 编辑

Delphi+DBGrid导出Excel

摘要: uses ComObj; //DBGrid:指定的DBGrid;SaveFileName:要保存的文件名 function ExportDBGrid(DBGrid: TDBGrid; SaveFileName: string): boolean; var c,r,i,j: integer; app: 阅读全文

posted @ 2017-08-18 19:40 癫狂编程 阅读(924) 评论(0) 推荐(0) 编辑

delphi try except语句 和 try finally语句用法以及区别

摘要: try//尝试执行{SomeCode} except//出错的时候执行, Except有特定的错误类型 {SomeCode} end; try//尝试执行{SomeCode} finally//无论如何都强制执行{SomeCode} end; 例:tryAge:=StrToInt(Edit1.Tex 阅读全文

posted @ 2017-08-18 18:56 癫狂编程 阅读(348) 评论(0) 推荐(0) 编辑

导航

好的代码像粥一样,都是用时间熬出来的