Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
LOCK, UNLOCK Statements
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Controls access by other processes to all or part of an opened file:
• Limits or prevents access (LOCK)
• Releases any locks (UNLOCK)
LOCK [#]filenumber% [,{record& | [start&] TO end&}]
.
.
.
UNLOCK [#]filenumber% [,{record& | [start&] TO end&}]
■ filenumber% Number of an open file
■ record& Any record number in the range 1 to
2,147,483,647, inclusive
■ start& Number of the first record or byte to lock or
unlock
■ end& Number of the last record or byte to lock or
unlock
See Also
◄File I/O Commands►