Siliconetics Developer Center 
(609) 7607027
admin@srcsb.com
Untitled Document
SearchSearch:
ClassMethodSaveCard


DESCRIPTION:
Save a card record into a FlitBase file.

ClassCLASS: CFlitBase

PROTOTYPE(S):
bool SaveCard(CCard *pCard, int LastCatType, int LastCatID, CTag* pItemData = NULL, int ItemSize = sizeof(CTag));


ARGUMENT(S):
CCard* pCardA pointer to the card record to be saved.
int LastCatTypeLast category or base record type.
int LastCatIDLast category or base record id.
CTag* pItemDataA pointer to item data if it is different than the given card tag.
int ItemSizeThe size of given item. The default value is the size of CTag.


RETURN VALUE:
This function always returns true.

EXAMPLE:




COMMENT:
Use this function to save (search and replace) a card record. If the identical card was not found, then the given card will be added to the file. Compared to ReplaceRecord or ReplaceAt, this function will manage the knick-knack works in order to perfectly save the card.

SEE ALSO:
ClassCCard, ClassMethodReplaceRecord, ReplaceAt
Untitled Document
SearchSearch: