QMWriteuSeqKey() |
|
|
The QMWriteuSeqKey() function writes a record using an automatically generated sequential numeric key. This is analogous to use of the CREATING.SEQKEY option of the QMBasic WRITEU statement.
The function arguments are:
The QMWriteuSeqKey() function writes the given data to the hashed file opened as FileNo. The record id is automatically generated and returned as the value of this function. This operation is not valid for directory files or distributed files.
An update lock is automatically applied to this record for the duration of the internal processing of the write and retained on return from the function.
The example program fragments below write the data in ClientRec to the file open as fCLients. The record id is generated automatically and returned in the Id variable.
|