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: