Microsoft KB Archive/50812

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Word BASIC Lof() Function Defined

PSS ID Number: Q50812 Article last modified on 02-17-1993

1.00 1.10 1.10a 2.00 WINDOWS

Summary: The WordBasic Lof() function returns the length of a file in bytes. Note: StreamNumber is actually the file number that was specified during the Open() Statement.

Syntax

Num = Lof(StreamNumber)

Example

Sub MAIN Open “Foo.Doc” For Input As #4 Print Lof(4) ’Print Length of file ’to the status bar Close #4 End Sub For more information on WordBasic functions, please refer to the “Microsoft Word for Windows Technical Reference.”

Additional reference words: w4wmacro 2.0 2.00