LockRmsRecordWait

LockRmsRecordWait locks the specific RMS file record for exclusive use.  If other processes are using the record, the function waits until locks the record successfully.

Syntax

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

Parameters

rmsHandle

RMS file handle

recNumber

Record number

Return Values

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

Remarks

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

If other processes are using the record, the function waits until it locks the record successfully.

If you do not want to wait while the record is busy, call LockRmsRecord.

See Also

LockRmsRecordWait, LockRmsRecord, UnLockRmsRecord.