11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

EDADRV_FetchStmt<br />

Syntax<br />

RETCODE EDADRV_FetchStmt(stmthdl,direction,numrows,rowsfetched,<br />

result)<br />

Description<br />

The EDADRV_FetchStmt function fetches numrows rows from an open cursor.<br />

Currently, EDA only uses forward scrolling. EDA expects the result set to be returned<br />

in a string format. The rows of the result are separated with record marks<br />

(EDADRV_ATTR_RM) and column values within each row separated with the<br />

NULL character (“\0”).<br />

In order to hold the result set, the EDADRV_FetchStmt function allocates a buffer.<br />

This buffer can only be freed by the EDADRV_FreeResult function.<br />

Input Variables<br />

The following table describes the input variables.<br />

Type Variable Description<br />

EDA_T_STMT_HDL stmthdl The statement handle.<br />

int direction The fetch direction. Valid values are:<br />

0 – Fetch Forward<br />

int numrows The number of rows to fetch.<br />

EDADRV_FetchStmt Input Variables<br />

EDADRV_FetchStmt 1-231

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!