QMDeleteu()

QMDeleteu()

Top  Previous  Next

 

The QMDeleteu() function deletes a record from a file, retaining the record lock. It is analogous to the QMBasic DELETEU statement.

 

The function arguments are:

 

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

 

Idis the id of the record to be deleted.

 

The QMDeleteu() 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 not released by this function.

 

The program fragment in the examples below opens the CLIENTS file and deletes the record identified by ClientNo. Note the use of a record update lock to comply with recommended programming rules.

 

 

hmtoggle_plus1C

 

hmtoggle_plus1VB.Net

 

hmtoggle_plus1QMBasic Class Module

 

hmtoggle_plus1Java

 

hmtoggle_plus1Python