天软金融分析.NET函数大全
>
TSL函数
>
资源访问函数
>
文件访问函数
Sysdbfwrite
复制链接
简述
将数据导出为DBF的格式的数据文件。
定义
sysdbfwrite(Alias;FileName:String;value;[ColInfo:Array]):Boolean;
参数
名称
类型
说明
Alias
String
字符串类型,目录别名。
FileName
String
字符串类型,文件名称。
Value
Array
输出的数据内容,必须有字符串列名。
ColInfo
Array
数组,数据导出的结构定义,若缺省则和exportfile的行为一致,采用自动判别类型。
返回
Boolean
布尔值,1表示写入成功,0表示写入失败。
范例
范例01:将数据导为dbf文件,各列数据类型自动判别。
t:=`array('A':(1,1,1),'B':('a','b','c'));
return rdo2 sysdbfwrite('',' D:\\testdbf.dbf ',t);
//导出的数据结果:
范例02:将数据导为dbf文件,按指定数据结构定义。
t:=`array('A':(1,1,1),'B':('a','b','c'));
c:=array("A":("Type":"C","Width":10,"Dec":0),"B":("Type":"C","Width":18,"Dec":0));
return rdo2 sysdbfwrite('',' D:\\testdbf.dbf ',t,c);
//在结构定义c中,将第A列的值数据类型导出为字符串,而非原数据的整型。
//导出的数据结果(A列为字符串类型):
相关
目录别名
ExportFile
ImportFile
ReadExcelSheets
ReadFile
WriteFile
FileExists
FileSize
FileTime
SetFileTime
FileAge
SetFileAge
FileAttr
SetFileAttr
FileDelete
FileRename
FileList
FileCopy
CreateDir
RemoveDir
WriteToLog
Sysdbfread
Sysdbfwrite
导入导出类型函数
文件读写类型函数
ExportFile2
ImportFile2
FileMode
SetFileMode
FileAttrToStr
FileModeToStr
StrToFileAttr
StrToFileMode
Filemove