This method sets the array element at the specified index. SetAt will not cause the array to grow. Use CTypedPtrArray::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.
Header file: | Afxtempl.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
TYPE GetAt( int nIndex ) const;
CTypedPtrArray::SetAtGrow, CObArray::SetAt