CDynamicAccessor::GetValue

void* GetValue( ULONG nColumn ) const;

void* GetValue( TCHAR* pColumnName ) const;

template < class ctype >
bool GetValue( ULONG
nColumn**, ctype*** pData ) const;

template < class ctype >
bool GetValue( TCHAR *pColumnName, ctype*
pData ) const;

Return Value

The nontemplated versions of GetValue return void*, which points to the part of the buffer that contains the specified column data. Returns NULL if the column is not found. The templated versions return true or false, which indicates success or failure.

Template Arguments

ctype

[in] A templated parameter to handle all of the various data types except TCHAR (which requires special handling). When you use a data type, GetValue uses the appropriate data type.

Parameters

nColumn

[in] The column number.

pColumnName

[in] The column name.

pData

[out] The pointer to the contents of the specified column.

Remarks

Retrieves the data for a specified column. Use the nontemplated versions to return a column that contains a string and the templated versions for other data types.

CDynamicAccessor OverviewClass Members