GetAddressCardIndex

The GetAddressCardIndex function retrieves the position index of an address card specified by its object identifier. The position index is based on the current sort order.

Syntax

int GetAddressCardIndex(PEGOID oidCard);

At a Glance

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

Parameters

oidCard
Object identifier of the address card the index is retrieved from.

Return Values

This function returns the position index of the address card if successful, otherwise –1.

Remarks

The Contacts database must have been opened by a previous call to the OpenAddressBook function. This function fails if no sort order was specified when the address book was opened.

See Also

GetAddressCardOid, OpenAddressBook