LOTUS CONNECTORS


SetParameter method
Example

Sets the replacement value for the specified parameter.

Defined in

ODBCResultSet

Syntax

status = odbcResultSet.SetParameter( parameter_name$ , value$ )

or

status = odbcResultSet.SetParameter( parameter_index% , value$ )

Parameters

parameter_name$


parameter_index%
value$
Return value
Usage

Parameters are set in SQL statements. Unlike ODBC and standard SQL, parameters may appear anywhere in the SQL statement. In LS:DO, a parameter reference is a name enclosed in question marks. Specify the value$ argument as Null to set the parameter as null, if appropriate in the SQL statement.

When you use a parameter surrounded by single quotes, specify the single quotes explicitly. Otherwise, SetParameter does not handle the value correctly. For example, specify the single quotes surrounding the city name as follows:


Events

BeforeSetParameter

AfterSetParameter

Example
See Also