QMWrite

Top  Previous  Next

 

The QMWrite function writes a record.

 

 

Format

 

VBQMWrite ByVal FileNo as Integer, ByVal Id as String, ByVal Rec as String

 

Cvoid QMWrite(int FileNo, char * Id, char * Rec)

 

ObjSession->Write(FileNo, Id, Rec)

 

where

 

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

 

Idis the id of the record to be written.

 

Recis the data to be written to this record.

 

 

The QMWrite function writes the given data to the file opened as FileNo. If a record with this Id already exists, it is replaced. If the record does not already exist, it is added.

 

An application should always obtain an update lock on the record before writing it. This function releases the lock.