Função Lof

Retorna o tamanho de um arquivo aberto em bytes.

Sintaxe:


Lof (FileNumber) As Long

Valor de retorno:

Long

Parâmetros:

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

Ícone Dica

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


Códigos de erro:

5 Chamada de procedimento inválida

52 Nome ou número de arquivo incorreto

Exemplo: