Help Center

CODBCStmt.ColScalemethod

A numeric value that is the applicable scale for a numeric data type.

DatabasesmethodCODBCStmt.incdocumented

Syntax

FUNCTION ColScale (BYVAL ColNum AS SQLUSMALLINT) AS SQLINTEGER

Parameters

NameDescription
ColNumColumn number.

Return value

The column applicable scale for a numeric data type.

Result code (GetLastResult)

SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_ERROR, or SQL_INVALID_HANDLE.

Description

A numeric value that is the applicable scale for a numeric data type. For DECIMAL and NUMERIC data types, this is the defined scale. It is undefined for all other data types. This information is returned from the SCALE record field of the IRD.

Reference

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