GetSubRecord
DESCRIPTION: Retrieve a subrecord from array. |
CLASS: CRecArray
PROTOTYPE(S):CRecord* GetSubRecord(int Pos); | CRecord* GetSubRecord(int Type, int ID); | CRecord* GetSubRecord(CTag TID); |
ARGUMENT(S):int Pos | The requested record position in array. | int Type | The requested record type. If the value is 0, all types will be accepted. | int ID | The requested record id. If the value is 0, all ids will be accepted. | CTag TID | A tag containing requested record type and id. |
RETURN VALUE: This funtion returns the pointer to the requested subrecord. If the position is invalid or out of range, or the requested type and id does not existed, it returns null.
EXAMPLE:
COMMENT:
|
|