Поделиться через


CBulkRowset::MoveToRatio

Fetches rows starting from a fractional position in the rowset.

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

Параметры

  • 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.

Возвращаемое значение

A standard HRESULT.

Заметки

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.

Требования

Header: atldbcli.h

См. также

Основные понятия

CBulkRowset Class

CBulkRowset Members