LOTUSSCRIPT LANGUAGE
Provide controlled access to files.
Syntax
Lock [#]fileNumber [ , recordNumber | { [ start ] To end } ]
Unlock [#]fileNumber [ , recordNumber | { [ start ] To end } ]
Elements
fileNumber
In a sequential file, LotusScript locks or unlocks the whole file, regardless of value you specify for recordNumber.
In Windows 3.1, you must run SHARE.EXE to enable the locking feature if you are using MS-DOS® version 3.1 or later. Earlier versions of MS-DOS do not support Lock and Unlock.
Always use Lock and Unlock statements in pairs whose elements— fileNumber, recordNumber, start, and end — match exactly. If you do not remove all locks, or if the elements do not match exactly, unpredictable results can occur.
Example See Also