CODBCStmt.ColLabelmethod
Returns the column label or title.
Syntax
FUNCTION ColLabel (BYVAL ColNum AS SQLUSMALLINT) AS DWSTRING
Parameters
| Name | Description | |
|---|---|---|
ColNum | Column number. |
Return value
The column label or title.
Result code (GetLastResult)
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_ERROR, or SQL_INVALID_HANDLE.
Description
Returns the column label or title. For example, a column named EmpName might be labeled Employee Name or might be labeled with an alias. If a column does not have a label, the column name is returned. If the column is unlabeled and unnamed, an empty string is returned.
Reference
- Include file
CODBCStmt.inc - Defined in AfxNova/COdbcStmt.inc:932
- Documented in Databases/ODBC Classes/CODBCStmt Class.md
- Topic: CODBCStmt Class