Lof Function

Returns the size of an open file in bytes.

Syntax:


Lof (FileNumber) As Long

Return value:

Long

Parameters:

FileNumber: Any numeric expression that contains the file number that is specified in the Open statement.

Táknmynd fyrir góð ráð

To obtain the length of a file that is not open, use the FileLen function.


Error codes:

5 Ógilt kall á stefju

52 Ógilt nafn eða númer á skjali

Example:

Please support us!