QMWriteu

Top  Previous  Next

 

The QMWriteu function writes a record, retaining the lock.

 

 

Format

 

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

 

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

 

ObjSession->Writeu(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 QMWriteu 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. The lock is retained on return from this function.