没有合适的资源?快使用搜索试试~ 我知道了~
Excel导入
资源推荐
资源详情
资源评论
1.unit ExcelProUnit;
2.
3.interface
4.type
5. TExcelFunction = procedure(asheet OleVariant); 声明导入函数
6.
7. {访问单元格:sheet.cells[row,col]
8.
9.转为string:vartostr(sheet.cells[row,col])
10.
11.转为datetime:vartodatetime(sheet.cells[row,col])
12.
13.}
14. afilename为数据源文件名,func为执行导入的函数
15.procedure RunExcelApplication(afilename string; func TExcelFunction);
16.
17.implementation
18.uses Controls, Forms, ComObj, windows, sysutils;
19.
20.procedure RunExcelApplication(afilename string;
21. func TExcelFunction);
22.var
23. app OleVariant;
24. oldCursor TCurSor;
25.begin
26. oldCursor = Screen.Cursor;
27. 保存鼠标指针状态
28. Screen.Cursor = crHourGlass;
29. try
30. CoInitializeEx(nil, 0);
2.
3.interface
4.type
5. TExcelFunction = procedure(asheet OleVariant); 声明导入函数
6.
7. {访问单元格:sheet.cells[row,col]
8.
9.转为string:vartostr(sheet.cells[row,col])
10.
11.转为datetime:vartodatetime(sheet.cells[row,col])
12.
13.}
14. afilename为数据源文件名,func为执行导入的函数
15.procedure RunExcelApplication(afilename string; func TExcelFunction);
16.
17.implementation
18.uses Controls, Forms, ComObj, windows, sysutils;
19.
20.procedure RunExcelApplication(afilename string;
21. func TExcelFunction);
22.var
23. app OleVariant;
24. oldCursor TCurSor;
25.begin
26. oldCursor = Screen.Cursor;
27. 保存鼠标指针状态
28. Screen.Cursor = crHourGlass;
29. try
30. CoInitializeEx(nil, 0);
资源评论
zhong13767124799
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功