CodeCharge Studio

ToSQL Method (ASP)

Applies to

Connection Object

Syntax

<connection>.ToSQL(Value, DataType)

Return value

string

Parameters

Name Type Description Required
Value any A value to be converted to SQL compatible format. Yes
DataType The data type the value will be converted to. You can use any of the predefined constants: ccsDate, ccsBoolean, ccsInteger, ccsFloat, ccsText, ccsMemo Desired data type. Yes

Description

This method converts values to the specified data type in order to make them SQL compatible.

See also

CCToSQL Function


On-line, printable versions and updates