|
Slide 10.18: Line-by-line anatomy of DB.c (cont.) Slide 10.20: Line-by-line anatomy of DB.c (cont.) Home |
|
DB.c (Cont.)
if ( DmQueryRecord( db, seek ) == NULL ) seek++;
busy bit).
dbP:
DmOpenRef to open database
index:
Which record to retrieve
if ( DmSetRecordInfo( db, index, &attr, NULL ) )
dbP:
DmOpenRef to open database
index:
Index of record
attrP:
Pointer to new attribute variable, or NULL.
See “Record Attribute Constants” for a list of possible values.
uniqueIDP:
Pointer to new unique ID variable, or NULL
DmDatabaseSize( dbCard, dbID, NULL, &totalBytes, &dataBytes );
cardNo:
Card number the database resides on
dbID:
Database ID of the database
NULL if you don't want to retrieve them.
numRecordsP:
The total number of records in the database
totalBytesP:
The total number of bytes used by the database including the overhead
dataBytesP:
The total number of bytes used to store just each record's data, not including overhead