ReleaseVData Release variable-length data record for reuse. Short Name RETVREC() Type Low-level data file function Declaration COUNT ReleaseVData(COUNT datno, LONG recbyt) Description ReleaseVData() adds record position recbyt to the pool of deleted records for variable-length file datno. ReleaseVData() should be called when a data record is no longer needed so that the space can be reused. Records returned by ReleaseVData() are reused by NewVData() before the data file is extended. ReleaseVData() is automatically called by DeleteVRecord(). Return
See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values. Example COUNT keyno,datno; LONG recbyt;
if (recbyt = GetKey(keyno,target)) if (DeleteKey(keyno,target,recbyt) == NO_ERROR) if (ReleaseVData(datno,recbyt) == NO_ERROR) printf("\nSUCCESS.");
Limitations The recbyt parameter in this function is a 4-byte value capable of addressing at most 4 gigabytes. If your application supports HUGE files (greater than 4 gigabytes), you must use the ctSetHgh() and ctGetHgh() functions to set or get the high order 4 bytes of the file offset. See also ctSetHgh(), ctGetHgh(), DeleteVRecord(), LockCtData(), NewVData() |
|||||||||||||||||||||