Share via


IRowsetPosition::GetCurrentPosition

GetCurrentPosition retrieves the number of the current row in the rowset.

Syntax

HRESULT IRowsetPosition::GetCurrentPosition (ULONG * pulPosition,);

Parameters

  • pulPosition
    [in/out] A pointer to an unsigned long value. This long must be allocated by the client.

Return Value

  • S_OK
    The method succeeded.
  • E_INVALIDARG
    pulPosition was NULL.
  • E_UNEXPECTED
    The rowset is in a zombied state.

Remarks

This returns the current location of the next fetch position in the rowset. The valid range is 1 to GetCurrentPosition. If there is no current row, pulPosition is 0.

See Also

Reference

IRowsetPosition (SQL Server Compact Edition)
IRowsetPosition::GetRecordCount

Help and Information

Getting SQL Server Compact Edition Assistance