Example: lrd_ora8_print

The following example uses lrd_ora8_print to output the results of an lrd_ora8_exec call, using function, PrintRow1. PrintRow1 is a callback function generated automatically by VuGen during test recording.

lrd_ora8_handle_alloc(OraEnv1, STMT, &OraStm1, 0);
lrd_ora8_stmt(OraStm1, "select ename from scott.emp", 1, 0, 0);
lrd_ora8_bind_col(OraStm1, &OraDef1, 1, &ENAME_D1, 0, 0);
lrd_ora8_exec(OraSvc2, OraStm1, 15, 0, &uliRowsProcessed, 0, 0, 0, 0, 0);
lrd_ora8_print(OraStm1, PrintRow1);
lrd_handle_free(&OraStm1, 0);