Fonction Lof

Renvoie la taille d'un fichier ouvert, en octets.

Syntaxe :


Lof (FileNumber) As Long

Valeur de retour :

Long

Paramètres :

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

Icône Astuce

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


Codes d'erreur :

5 appel de procédure incorrect

52 nom ou numéro de fichier incorrect

Exemple :