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.


Error codes:

5 Invalid procedure call

52 Bad file name or number

Example:

Please support us!