Compartilhar via


CBulkRowset::MoveToRatio

Fetches rows starting from a fractional position in the rowset.

HRESULT MoveToRatio( 
   DBCOUNTITEM nNumerator, 
   DBCOUNTITEM nDenominator  
) throw( );

Parameters

  • nNumerator
    [in] The numerator used to determine the fractional position from which to fetch data.

  • nDenominator
    [in] The denominator used to determine the fractional position from which to fetch data.

Return Value

A standard HRESULT.

Remarks

MoveToRatio fetches the rows roughly according 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 in the OLE DB Programmer's Reference.

Requirements

Header: atldbcli.h

See Also

Reference

CBulkRowset Class