FILETYPE参数的关键是必须传给它一个SmallInt的变量,而不能是常量.
这个变量可以赋如下几个已定义的常量.
F1FileFormulaOne Formula One format
F1FileExcel4 Excel 4.0 format
F1FileTabbedText Tab-delimited text file
F1FileExcel5 Excel 5.0 format
F1FileFormulaOne3 Formula One v.3 format
F1FileTabbedTextValuesOnly Tab-delimited text file values only
举个简单例子:
procedure ReadFile;
Var
fType:SmallInt;//**fType必须是SmallInt
FileName:String;
Begin
...
//fType:=F1FileExcel5;
fType:=F1FileFormulaOne3;
F1Book.Read(WideString(FFileName),fType);
...
end;