Lof Function

Возвращает размер открытого файла в байтах.

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.

Значок подсказки

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


Error codes:

5 Неправильный вызов процедуры

52 Неправильное имя или номер файла

Example: