QMDelete()

Top  Previous  Next

 

The QMDelete function deletes a record from a file.

 

 

Format

 

VBQMDelete ByVal FileNo as Integer, ByVal Id as String

 

Cvoid QMDelete(int FileNo, char * Id)

 

ObjSession->Delete(FileNo, Id)

 

where

 

FileNois the file number returned by a previous QMOpen() call.

 

Idis the id of the record to be deleted.

 

 

The QMDelete function deletes the named record from the file open as FileNo. No error occurs if the record does not exist.

 

Applications should always obtain an update lock for a record before deleting it. The lock is released by this function.