FREEFILE function

Purpose: The FREEFILE function returns a handle that is not being used and assigns it to FileHandle.


 Syntax:

 hFile = FREEFILE

 Parameters:

  • hFile Returned available file handle. Dimensioning of hFile is done by the FREEFILE function.

Example:


 MyIO = FREEFILE
 OPEN "Test.txt" FOR OUTPUT AS MyIO
 CLOSE MyIO