Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CObList::GetAt
CObList                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  CObject*& GetAt( POSITION position );
  CObject* GetAt( POSITION position ) const;
 
  Parameter   Description
 
  <position>  A POSITION value returned by a previous BeginIterate or Find
              member function call.
 
  Remarks
 
  A variable of type POSITION is a kind of "key" for the list. It is not
  the same as an index, and you cannot operate on a POSITION value
  yourself. GetAt retrieves the CObject pointer associated with a given
  position.
 
  You must ensure that your POSITION value represents a valid position in
  the list. If it is invalid, then the Debug version of the library
  asserts.
 
  Return Value
 
  See the return value description for GetHead.
 
  Example
 
  See the example for FindIndex.
 
  See Also
 
  CObList::Find, CObList::SetAt, CObList::GetNext,
  CObList::GetPrev, CObList::GetHead
 
 
                                     -♦-