Help Center

CODBCStmt.ColBaseColumnNamemethod

Returns the base column name for the result set column.

DatabasesmethodCODBCStmt.incdocumented

Syntax

FUNCTION ColBaseColumnName (BYVAL ColNum AS SQLUSMALLINT) AS DWSTRING

Parameters

NameDescription
ColNumColumn number.

Return value

The base column name for the result set column.

Result code (GetLastResult)

SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_ERROR, or SQL_INVALID_HANDLE.

Description

Returns the base column name for the result set column. If a base column name does not exist (as in the case of columns that are expressions), then this variable contains an empty string. This information is returned from the SQL_DESC_BASE_COLUMN_NAME record field of the IRD, which is a read-only field.

Reference

  • Include file CODBCStmt.inc
  • Defined in AfxNova/COdbcStmt.inc:837
  • Documented in Databases/ODBC Classes/CODBCStmt Class.md
  • Topic: CODBCStmt Class