Call this member function to set the array element at the specified index. SetAt will not cause the array to grow. Use SetAtGrow if you want the array to grow automatically. You must ensure that your index value represents a valid position in the array. If it is out of bounds, then the Debug version of the library asserts.
void SetAt( int nIndex, CObject* newElement );
Header file: | Afxcoll.h |
Platforms: | |
Versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
CObArray Overview, CObArray Member Functions, Array Classes, CObArray::GetAt, CObArray::SetAtGrow, CObArray::ElementAt, CObArray::operator []