QMRelease()

QMRelease()

Top  Previous  Next

 

The QMRelease() function releases a record lock. It is analogous to the QMBasic RELEASE statement.

 

the function arguments are:

 

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.

 

The example program fragments below attempt to read a record with an update lock. If the record is not found, the lock is released

 

 

hmtoggle_plus1C

 

hmtoggle_plus1VB.Net

 

hmtoggle_plus1QMBasic Class Module

 

hmtoggle_plus1Java

 

hmtoggle_plus1Python