QMRelease |
|
|
The QMRelease function releases a record lock. It is analogous to the QMBasic RELEASE statement.
Format
where
The QMRelease function can be used to release a lock without writing or deleting the record. One common use of this function is to release the lock obtained by a call to QMReadl() or QMReadu() where the record was not found and the function returned the SV_ELSE status.
Examples
The above program fragment attempts to read a record with an update lock. If the record is not found, the lock is released prior to exit from the subroutine.
Note how the C example uses QMFree() to release the dynamic memory allocated to store Rec.
|