CObArray::SetAt

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.

At a Glance

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

Syntax

void SetAt( int nIndex, CObject* newElement );

See Also

CObArray::GetAt, CObArray::SetAtGrow, CObArray::ElementAt, CObArray::operator []