fl_ImportFile
简述
ImportFile函数教学函数。导入保存类型为importType的指定ID证券数据文件。若文件不存在则返回'file not exist',若文件导入失败则返回'Import file fail'。其中虚拟目录名为'testdir',用户应申请服务器权限并且建立好该虚拟目录。
fl_ImportFile(ImportType:Integer;Id:String)
| 名称 | 类型 | 说明 |
|---|
| ImportType | Integer | 用户自定义
|
显示名 |
取值 | |
逗号分割文件 |
0 | |
Excel文件 |
1 | |
天软对象流文件 |
2 | |
天软字符串文件 |
3 |
|
| ID | String | 证券 |
return fl_ImportFile(1,'SH600218');//运行前已经将该股票的发行信息保存到服务器上
结果:
