RecountCards

The RecountCards function causes the system to recount the number of address cards in the Contacts database.

Syntax

void RecountCards();

At a Glance

Header file: Addrstor.h
Platforms: H/PC
Versions: 1.0 and later

Remarks

The address cards are automatically counted by the system when the OpenAddressBook function is called.

Your application must call the RecountCards function if another application modifies the Contacts database while your application has it open. The system notifies your application of such a modification by sending one of the following messages to the window specified in the OpenAddressBook function:

DB_PEGOID_CREATED
Address card added to Contacts database.
DB_PEGOID_RECORD_DELETED
Address card deleted from Contacts database.

The system will also broadcast the DB_PEGOID_CHANGED message when an address card in the Contacts database is modified; however, this message does not require a call to RecountCards.

For more information, see Contacts Database.

See Also

OpenAddressBook