FreeFile function (LotusScript® Language)

Returns an unused file number.



Return value

FreeFile returns an Integer value.


Use FreeFile when you need a file number (to open a file), but you don't know what file numbers are currently available.

If no more file numbers are available, an error is generated.

LotusScript® limits the number of open files to 255. Depending on your operating system environment and the HCL software you are running, the actual number of files that you can open may be 15 or less. See your product documentation for details.

You can call the function as either FreeFile or FreeFile().