Help Center

CODBCStmt.GetImpRowDescFieldNamemethod

Returns the name of a single field of a descriptor record.

DatabasesmethodCODBCStmt.incdocumented

Syntax

FUNCTION GetImpRowDescFieldName (BYVAL RecNumber AS SQLSMALLINT) AS DWSTRING

Parameters

NameDescription
RecNumberIndicates the descriptor record from which the application seeks information. Descriptor records are numbered from 1, with record number 0 being the bookmark record. The RecNumber argument must be less or equal to the value of SQL_DESC_COUNT.

Return value

The name of the field.

Result code (GetLastResult)

SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, SQL_NO_DATA, or SQL_INVALID_HANDLE.

SQL_NO_DATA is returned if RecNumber is greater than the current number of descriptor records.

Description

Returns the name of a single field of a descriptor record.

Reference

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