6.1.2.5.1.7 FreeFile

Function Declaration

 Function FreeFile(Optional RangeNumber As Variant                   ) As Integer 

Parameter

Description

RangeNumber

Integer data value that specifies the range from which the next free file number (section 5.4.5) is to be returned. Specify the data value 0 (default) to return a file number in the range 1-255, inclusive. Specify the data value 1 to return a file number in the range 256-511, inclusive.

 

Runtime Semantics.

§ Returns an Integer representing the next file number available for use by the Open statement.