Slide 10.17: Line-by-line anatomy of DB.c (cont.) Slide 10.19: Line-by-line anatomy of DB.c (cont.) Home |
DB.c
(Cont.)
DmReleaseRecord( db, index, true );
busy
bit for the given record and sets the dirty
bit if dirty is true
.
Call this routine when you finish modifying or reading a record that you've called DmGetRecord( ) on or created using DmNewRecord( ).
dbP
:
DmOpenRef
to open database
index
:
The record to unlock
dirty
:
If true
, set the dirty
bit.
DmRecordInfo( db, curRec, &attr, NULL, NULL )
dbP
:
DmOpenRef
to open database
index
:
Index of the record
NULL
if the values are not wanted.
attrP
:
The record's attributes.
See “Record Attribute Constants.”
uniqueIDP
:
The record's unique ID
chunkIDP
:
The record's local ID
if ( ( error = DmRemoveRecord( db, curRec ) ) == 0 ) {
dbP
:
DmOpenRef
to open database
index
:
Index of the record to remove