9.0

198
StreamNum Streams 1 through 255 are private to each macro. Streams 256 through 511 are
shared by all macros.
RecordNum For Random mode files this is the record number. The first record is 1. Otherwise, it
is the byte position. The first byte is 1.
start First record (or byte) in the range.
end Last record (or byte) in the range.
See Also: Open, Unlock.
Example
Sub Main
Dim
V As Variant
Open
"SAVE_V.DAT" For Binary As #1
Lock #1
Get
#1, 1, V
V = "Hello"
Put #1, 1, V
Unlock
#1
Close
#1
End
Sub
LOF Function
Syntax
LOF(StreamNum)
Group
File
Description
Return StreamNum file length (in bytes).
Parameter Description
StreamNum Streams 1 through 255 are private to each macro. Streams 256 through 511 are
shared by all macros.
Example
Sub Main
Open
"XXX" For Input As #1
L = LOF(1)
Close
#1
Debug
.Print L
End
Sub
Log Function
Syntax