FairCom Direct SQL for C and C++
ctsqlSetNumericParameterAsString
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
- hCmd - command handle
- index - parameter number you want to set. The value must be greater or equal to zero but less than the parameter count
- ptype - type of parameter being passed in buffer. This type must match one of the following types: CTSQL_NUMERIC and CTSQL_MONEY
- isnull - indicate if parameter should be NULL or not
- buffer - string representing the numeric data
Return
Returns CTSQLRET_OK on success.