Parameter Object |
home |
SQLXL | |||
Database | |||
Parameters | |||
Parameter |
The parameter object manages a parameter in an SQL statement. It will remain available for the database session. A parameter can either be a subsitution variable or a bind variable. Substitution variables will hwoever always have mode IN and have datatype of varchar (text).
Name | Data Type | Description |
DataType | Long | Returns a number indicating the type of the parameter:
|
Mode | Long | Returns a number indicating the mode of the parameter:
|
Value | Variant | Sets the value of the parameter |
Name | Data Type | Description |
none |
Set basic properties of a parameter
SQLXL.Database.Parameters.SubstVariables("my_parameter").Value = "10" SQLXL.Database.Parameters.BindVariables("my_parameter").Mode = litTypeNumber SQLXL.Database.Parameters.BindVariables("my_parameter").Mode = litParamIn