|
Slide 10.13: Line-by-line anatomy of DB.c (cont.) Slide 10.15: Line-by-line anatomy of DB.c (cont.) Home |
|
DB.c (Cont.)
DmSetDatabaseInfo( dbCard, dbID, NULL, &attributes, NULL, ... );
DmGetDatabaseLockState( db, NULL, NULL, &locks );
dbR:
Database access pointer
NULL if you don't want to retrieve them.
highest:
The highest lock count found for all of the records in the database.
If a database has two records, one has a lock count of 2 and one has a lock count of 1, the highest lock count is 2.
count:
The number of records that have the lock count that is returned in the highest parameter
busy:
The number of records that have the busy bit set
nbRec = DmNumRecords( db );
dbP: DmOpenRef to open database
deleted bit set are included in the count.
If you want to exclude these records from your count, use DmNumRecordsInCategory( ) and pass dmAllCategories as the category.