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.


錯誤代碼:

5 無效的程序呼叫

52 錯誤的檔案名稱或檔案編號

Example:

Please support us!