Lof 函数

返回打开文件的大小,以字节为单位。

语法:


Lof (FileNumber) As Long

返回值:

Long

参数:

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 错误的文件名或编号

示例:

请支持我们!