Unlock
Removes a previous access restriction (lock) on a file
Unlock #filenum, record
Unlock #filenum, start To end
filenum
Unlock removes the temporary access restriction set by Lock.
It is strongly recommended to use the same arguments used in the previous Lock.
Note: This command does not always work, neither as documented nor as expected. It appears to be broken at the moment.
Syntax
Unlock #filenum, record
Unlock #filenum, start To end
Parameters
filenum
The file number used to Open the file.
recordThe record (Random files) to unlock.
startThe first byte position (Binary files) in a range to unlock.
endDescription
Unlock removes the temporary access restriction set by Lock.
It is strongly recommended to use the same arguments used in the previous Lock.
Note: This command does not always work, neither as documented nor as expected. It appears to be broken at the moment.
Example
Differences from QB
- Currently, FB cannot implicitly unlock the entire file
- In Random mode, FB cannot unlock a range of records
See also