Previous Topic: void Clear(void)

Next Topic: HUINT32 GetKeyCount( void ) const


CaData & Props( LPCTSTR strKey, HINT32 iIndex)

Retrieves a referent to an object within the container. The contents of the object can be read or altered.

Owning Class

CaContainer

Arguments

LPCTSTR strKey - the key value of the CaDataArray to locate

HINT32 iIndex- the location within the CaDataArray where the CaData object resides

Return Value

CPtHData & - a referent to the located object

Notes

iIndex defaults to zero.

A lower-level exception occurs if the key is not found or if the index is out of range.

Example

CaContainer bag; CaString = (LPCTSTR)bag.Props(“MyKey”, 2);

More information: