Syntax
| Unlock StreamNum
-or-
Unlock StreamNum, RecordNum
-or-
Unlock StreamNum, [start] To end
| ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Form 1: Unlock all of StreamNum.
Form 2: Unlock a record (or byte) of StreamNum.
Form 3: Unlock a range of records (or bytes) of StreamNum. If start is omitted then unlock starting at the first record (or byte).
Note: For sequential files (Input, Output and Append) unlock always affects the entire file.
| ||||||||||
See Also
| |||||||||||
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
|