The QMRecordlock function locks a record.
Format
VB | QMRecordlock ByVal FileNo as Integer, ByVal Id as String, ByVal Update as Integer, |
ByVal Wait as Integer
C | void QMRecordlock(int FileNo, char * Id, int Update, int Wait) |
Obj | Session->Recordlock(FileNo, Id, Update, Wait) |
where
FileNo | is the file number returned by a previous QMOpen() call. |
Id | is the id of the record to be locked. |
Update | is a boolean value specifying the type of lock to be obtained: |
Wait | is a boolean value indicating the action to be taken if the record is currently locked by another user: |
True | wait for the record to become available |
False | return an error code of SV_LOCKED |
The QMRecordlock function can be used to obtain a lock on a record without reading the record.
|