CObList::SetAt

Call this member function to write the CObject pointer to the specified position in the list. A variable of type POSITION is a key for the list. It is not the same as an index, and you cannot operate on a POSITION value yourself.

You must ensure that your POSITION value represents a valid position in the list. If it is invalid, then the Debug version of the MFC for Windows CE asserts.

Syntax

void SetAt( POSITION pos, CObject* newElement );

At a Glance

Header file: Afxcoll.h
Platforms:
Versions: 1.0 and later
Complete documentation: Visual C++ documentation

See Also

CObList Overview, CObList Member Functions, List Classes, CObList::Find, CObList::GetAt, CObList::GetNext, CObList::GetPrev