LockRmsRecord

LockRmsRecord locks the specific RMS file record for exclusive use.  If other processes are using the record, the function fails and returns immediately.

Syntax

Function LockRmsRecord(rmsHandle as Integer, recNumber As Long) As Boolean

Parameters

rmsHandle

RMS file handle

recNumber

Record number

Return Values

On success, LockRmsRecord returns TRUE.  If failed, it returns FALSE.

Remarks

The function LockRmsRecord locks the specific RMS file record for exclusive use. 

If other processes are using the record, the function fails and returns immediately. If you do

not want to return immediately while the record is busy, call LockRmsRecordWait.

See Also

LockRmsRecordWait, LockRmsRecord.