QMRelease

Top  Previous  Next

 

The QMRelease function releases a record lock.

 

 

Format

 

VBQMRelease ByVal FileNo as Integer, ByVal Id as String

 

Cvoid QMRelease(int FileNo, char * Id)

 

ObjSession->Release(FileNo, Id)

 

where

 

FileNois the file number returned by a previous QMOpen() call. If zero, all locks are released.

 

Idis the id of the record to be unlocked. If given as a null string, all locks in the file identified by FileNo are released.

 

 

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.