.. highlightlang:: us .. index:: IsFileLotus .. _isfilelotus: IsFileLotus =========== .. us.tag IsFileLotus ENGLISH FILE_MISC New320 :ref:`IsFileLotus` checks if the given file is a Lotus 1-2-3file (:file:`.WK1`). .. function:: nVersion = IsFileLotus(ssFileName) .. us.return **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. .. us.params **Parameters** .. uparam:: ssFileName *ssFileName* is the file name. .. us.example **Example** :: if (IsFileLotus("c:/data/test.wk1")) { MessageBox("test.wk1 is a Lotus File"); } else { MessageBox("test.xls is not a Lotus File"); } .. seealso:: :ref:`LotusRead` :sub:`id-351785`