LOTUSSCRIPT LANGUAGE


Lock and Unlock statements
Example

Provide controlled access to files.

Syntax

Lock [#]fileNumber [ , recordNumber | { [ start ] To end } ]

Unlock [#]fileNumber [ , recordNumber | { [ start ] To end } ]

Elements

fileNumber


recordNumber
start To end
Usage

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