This method sets 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 calls the ASSERT macro.
Header file: | Afxcoll.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
void SetAt( int nIndex, CObject* newElement );
CObArray::GetAt, CObArray::SetAtGrow, CObArray::ElementAt, CObArray::operator []