Contents Index SetNull method Generated table class pdf/preface.pdf

UltraLite User's Guide
  C++ API Reference
    Generated statement class

SetParameter method


Prototype 

virtual bool  SetParameter( int argnumvalue-reference )

value-reference:
  [ unsigned ] long & value
| p_ul_binary value
| unsigned char & value
| ul_char * value
| double & value
| float & value
| [ unsigned ] short & value
| DECL_DATETIME value
| DECL_BIGINT value
| DECL_UNSIGNED_BIGINT value

Description 

This method sets parameters for statements before the Execute method is called.

To set parameters to NULL, use the SetNull method.

Parameters 

argnum    An identifier for the argument to be set. The first argument is 1, the second 2, and so on.

value-reference    A reference to the parameter value. The data type listing above provides the possibilities. As the parameter are passed as pointers, they must remain valid until used. Do not free them until they are used.

Returns 

true (1) if successful.

false (0) if unsuccessful. If you supply a parameter of the wrong data type, the method fails.

See also 

Execute method

SetNull method


Contents Index SetNull method Generated table class pdf/preface.pdf