FREEFILE function

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


 Syntax:

 hFile = FREEFILE

 Parameters:

  • None.

 Return Value:

  • hFile, the return value, is an available file handle. Note well that dimensioning of the hFile variable is done automatically by the FREEFILE function.

Example:


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