IsFileLotusΒΆ
IsFileLotus checks if the given file is a Lotus 1-2-3file (.WK1
).
-
nVersion = IsFileLotus(ssFileName)
Return Value
This function returns the file format revision number (e.g. 1028= 1-2-3 file or 1029= Symphony file) or 0 if the file is not a Lotus WK1 file or cannot be opened.
Parameters
-
ssFileName
ssFileName is the file name.
Example
if (IsFileLotus("c:/data/test.wk1")) {
MessageBox("test.wk1 is a Lotus File");
} else {
MessageBox("test.xls is not a Lotus File");
}
See also
id-351785