GetRowCount (ILLDataProvider)

Syntax:

HRESULT GetRowCount(INT* pnRows);

Task:

Only used at node level. Requests the number of data lines of the data object. If no record number is available due to performance limitations, simply return S_FALSE. In this case, List & Label does not support a progress bar.

Parameter:

pnRows: Target address for the number of data rows

Return value:

E_NOTIMPL for root objects, otherwise S_OK or S_FALSE or E_FAIL in case of an error

Example:

*pnRows = _count;

return S_OK;

See also:

SetOption (ILLDataProvider), OPTION_HINT_MAXROWS