Example: lrd_result_setRetrieval Handling Functions

Prepares the next result set.

LRDRET lrd_result_set( LRD_CURSOR *mptCursor, long mliOpt1, long mliOpt2, int miDBErrorSeverity );

mptCursor A pointer to an LRD_CURSOR structure.
mliOpt1 One of the Result Set options,Option 1 LRD_CTLIB_RETCODE_xxx
mliOpt2 One of the Result Set options, Option 2 LRD_RESULT_SET_CTLIB_OPT2_xxx
miDBErrorSeverity The Error Severity Levels of a failure in a database routine.

The lrd_result_set function prepares the next result set for printing a character string (usually an SQL statement) with a cursor. For CtLib, it issues a ct_result command and in ODBC it runs SqlMoreResults for the current database statement.

See lrd_result_set_ext for information on generating an extended result set function. (CtLib only)

For more details refer to the Function Header File lrd.h in the include directory.

Return Values

See LRD Return Values.


You cannot use standard parameterization for any arguments in this function.