Compartir a través de


CDynamicStringAccessor::GetString

Retrieves the specified column data as a string.

BaseType* GetString(
    DBORDINAL nColumn
) const throw( );
BaseType* GetString(
    const CHAR* pColumnName
) const throw( );
BaseType* GetString(
    const WCHAR* pColumnName
) const throw( );

Parameters

  • nColumn
    [in] The column number. Column numbers start with 1. A value of 0 refers to the bookmark column, if any.

  • pColumnName
    [in] A pointer to a character string containing the column name.

Return Value

A pointer to the string value retrieved from the specified column. The value is of type BaseType, which will be CHAR or WCHAR depending on whether _UNICODE is defined or not.

Remarks

The second override form takes the column name as an ANSI string and the third override form takes the column name as a Unicode string.

Requirements

Header: atldbcli.h

See Also

Concepts

CDynamicStringAccessor Class

CDynamicStringAccessor Members