Most high-level languages have their own numeric/decimal types that usually require converting them into strings in the high-level language and then converting the strings into the proper numeric/decimal types. To aid in this process, two new functions were added that return numeric columns as strings:
ctsqlSetNumericParameterAsString
Declaration
CTSQLRET ctsqlDECL ctsqlSetNumericParameterAsString(pCTSQLCMD hCmd, INTEGER index, CTSQLTYPE ptype, BIT isnull, CTSQLCHAR* buffer)
Description
Set parameter for all numeric types: CTSQL_NUMERIC and CTSQL_MONEY.
Parameters
Return
Returns CTSQLRET_OK on success.
ctsqlGetNumericAsString
Declaration
CTSQLRET ctsqlDECL ctsqlGetNumericAsString(pCTSQLCURSOR hCursor, INTEGER colnumber, CTSQLCHAR* buffer, INTEGER size)
Description
Retrieve the value of a numeric field.
Parameters
Return
Returns CTSQLRET_OK on success.