Share this page

# Example: lrd_data_info

In the following example, lrd_data_info gets I/O information from the second column.

    lrd_open_cursor(&Csr9, Con1, 0);
    lrd_stmt(Csr9, "select * from sampletext", -1, 148, -99999, 0);
    lrd_exec(Csr9, 0, 0, 0, 0, 0);
    lrd_result_set(Csr9, 1 /*Succeed*/, 4040 /*Row*/, 0);
    lrd_bind_cols(Csr9, BCInfo_D2, 0);
    lrd_fetch(Csr9, 1, 0, 0, PrintRow1, 0);
    lrd_data_info(Csr9, 2, 1, "", 0);
    lrd_bind_cols(Csr9, BCInfo_D4, 0);
    lrd_fetch(Csr9, 0, 0, 0, PrintRow2, 0);

    /* Note: no rows returned by above lrd_fetch */
    lrd_result_set(Csr9, -205 /*End results*/, 4046 /*Done*/, 0);
    lrd_open_cursor(&Csr10, Con2, 0);
    lrd_stmt(Csr10, "", -1, 151, 193, 0);
    lrd_assign(&_2_D5, "T", 0, 0, 0);
    lrd_send_data(Csr10, "", 1, "TotalLen=45;Log=1", &_2_D5, 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: