| Home | How To | Online Documentation | Support | Download | Order |
|
|
SAParam & ParamByIndex(
int
nIndex ); Returns the command parameter specified by index. ParametersnIndex. A zero-based index of the requested parameter in the array of SAParam objects. It must be greater than or equal to 0 and 1 less than the value returned by ParamCount method. Return valueA reference to a SAParam object. RemarksNormally you should use Param method to access a parameter by its name or position (in SQL statement). ParamByIndex method can be used if, for example, you want to walk through all the parameters. If parameters were not created before calling ParamByIndex method the Library creates them implicitly (can query native API if needed and therefore can throw exception on error) and then returns the specified parameter. Passing a negative value of index or a value greater or equal than the value returned by ParamCount method will result in a failed assertion. SAParam object contains full information about a parameter: name, type, size, etc. Values for the input parameters can be assigned to SAParam object or supplied by operator << . Server specific notesNo specific information. See alsoCreateParam, Param, ParamCount Problems and QuestionsIf you haven't found the answer to your questions or have some problems on using the Library, please, send e-mail to howto@sqlapi.com. |
||||||||||||||||||