SaveCard
DESCRIPTION: Save a card record into a FlitBase file. |
CLASS: CFlitBase
PROTOTYPE(S):bool SaveCard(CCard *pCard, int LastCatType, int LastCatID, CTag* pItemData = NULL, int ItemSize = sizeof(CTag)); |
ARGUMENT(S):CCard* pCard | A pointer to the card record to be saved. | int LastCatType | Last category or base record type. | int LastCatID | Last category or base record id. | CTag* pItemData | A pointer to item data if it is different than the given card tag. | int ItemSize | The 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: CCard, ReplaceRecord, ReplaceAt |
|