|
6#
楼主 |
发表于 2008-11-26 15:08:00
|
只看该作者
lrd_open_cursor(&Csr9, Con1, 0);
lrd_db_option(Csr9, OT_ODBC_QUERY_TIMEOUT, (void FAR const *)90, 0);
lrd_stmt(Csr9, "select control_nm, column_no, caption, language_id, screen_nm from "
"tlbldesc ", -1, 1 /*Direct exec*/, 0 /*None*/, 0);
lrd_db_option(Csr9, OT_ODBC_RETRIEVE_DATA, "OFF", 0);
lrd_db_option(Csr9, OT_ODBC_RETRIEVE_DATA, "ON", 0);
lrd_bind_cols(Csr9, BCInfo_D49, 0);
lrd_fetchx(Csr9, -5328, 1, 0, PrintRow22, 1, 0);
lr_think_time(18);
lrd_db_option(Csr9, OT_ODBC_CURSOR_UNBOUNDCOLS, 0, 0);
lrd_result_set(Csr9, 0, 0, 0);
lrd_db_option(Csr9, OT_ODBC_CURSOR_CLOSE, 0, 0);
lrd_close_cursor(&Csr9, 0); |
|