Share this page

# Example: lrd_result_set

In the following example, the lrd_result_set function prepares the result set retrieved by the query.

    lrd_open_cursor(&Csr11, Con1, 0);

    lrd_stmt(Csr11, "SELECT id, last_name, city, state FROM contact WHERE " "state = 'CA'", -1, 700, 2, 0);

    lrd_exec(Csr11, 0, 0, 0, 0, 0);

    lrd_result_set(Csr11, 1 /*Succeed*/, 4046 /*Done*/, 0);

    lrd_result_set(Csr11, 1 /*Succeed*/, 4046 /*Done*/, 0);

    lrd_result_set(Csr11, 1 /*Succeed*/, 4041 /*Cursor*/, 0);

    lrd_bind_col(Csr11, 1, &id_D7, 0, 0);

    lrd_bind_col(Csr11, 2, &last_name_D8, 0, 0);

    lrd_bind_col(Csr11, 3, &city_D9, 0, 0);

    lrd_bind_col(Csr11, 4, &state_D10, 0, 0);

    lrd_fetch(Csr11, -5, 0, 0, PrintRow8, 0);

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: