HRESULT MoveToRatio( ULONG nNumerator, ULONG nDenominator, bool bForward = true );
Return Value
A standard HRESULT.
Parameters
nNumerator
[in] The numerator used to determine the fractional positional from which to fetch data.
nDenominator
[in] The denominator used to determine the fractional positional from which to fetch data.
bForward
[in] Indicates whether to move forward or backward. The default is forward.
Remarks
Fetches rows starting from a fractional position in the rowset, according (roughly) to the following formula:
( nNumerator * RowsetSize ) / nDenominator
Where RowsetSize
is the size of the rowset, measured in rows. The accuracy of this formula depends on the specific provider. For details, see IRowsetScroll::GetRowsAtRatio.