Close statement (LotusScript® Language)

Closes one or more open files, after writing all internally buffered data to the files.

Syntax

Close [ [ # ] fileNumber [ , [ # ] fileNumber ] ... ]

Elements

fileNumber

Optional. The number that LotusScript® assigned to the file when it was opened.

If you omit fileNumber, Close closes all open files.

Usage

The pound sign (#) preceding fileNumber is optional and has no effect on the statement.

Before closing the open files, Close writes all internally buffered data to the files.

If LotusScript® encounters a run-time error that is not handled by an On Error statement, LotusScript® closes all open files; otherwise, the files remain open.

If the value of fileNumber is contains a fraction, LotusScript® rounds the value before using it.

Example