This documentation is archived and is not being maintained.

CRowset::MoveFirst

Moves the cursor to the initial position and retrieves the initial row.

HRESULT MoveFirst( ) throw( );

Return Value

A standard HRESULT.

Remarks

Calls IRowset::RestartPosition to reposition the next-fetch location to the initial position (the position that was the next-fetch location when the rowset was created) and retrieves the initial row.

Example

See the ShowImage Sample.

See Also

CRowset Overview | Class Members | CRowset::MoveNext | CRowset::MoveToBookmark | CRowset::MovePrev | CRowset::MoveLast | IRowset::RestartPosition

Show: