LOF Function

Syntax:

LOF(StreamNum)

Group:

File

Description: Returns StreamNum file length (in bytes).

Parameters:

Parameter

Description

StreamNum

Streams 1 through 255 are private to each macro. Streams 256 through 511 are shared by all macros.

Example:

Sub Main
  Open "XXX" ForInput As #1
  L = LOF(1)
  Close #1
  Debug.Print L
End
Sub