Função Lof

Devolve o tamanho de um ficheiro 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 da 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álido

52 Erro no nome ou número do ficheiro

Exemplo:

Necessitamos da sua ajuda!