ResetRecord Updates the current ISAM record image buffers. Short Name UPDCURI() Type ISAM function Declaration COUNT ResetRecord(COUNT datno, COUNT mode); Description ResetRecord() manipulates the internal image of the current ISAM record kept by c-tree Plus. An image is kept of the current ISAM record’s key structure and the current ISAM record’s file address. Whenever an ISAM function changes the current ISAM record, such as an AddRecord() or ReWriteRecord(), the original current ISAM record information is copied over to a secondary buffer before the primary buffer is changed. ResetRecord() can be used to manage these two buffers.
Return
See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values. Example COUNT invfil; struct invd {
TEXT delflg[4]; LONG part_no; LONG on_hand; TEXT part_name[60]; } recbuf;
recbuf.delflg = '\0'; /* clear delete flag */ if (AddRecord(invfil,&recbuf) ) printf("\nAddRecord error %d in file %d", isam_err, isam_fil);
if (ResetRecord(invfil,SWTCURI) ) printf("\nCannot reset, error %d",isam_err);
See also AddRecord(), ReWriteRecord(), SetRecord(). |
|||||||||||||||||||||||||||||