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.

SQLNumResultCols<br />

Syntax<br />

status = SQLNumResultCols (statement.env, cols)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you<br />

must compile your programs using the BASIC command with the -i option.<br />

Description<br />

SQLNumResultCols returns the number of columns in a result set.<br />

Use this function after executing an SQL statement to find the number of columns in<br />

the result set. If the executed statement was not a SELECT statement or a called<br />

procedure that produced a result set, the number of result columns returned is 0.<br />

Use this function when the number of columns to be bound to application variables<br />

is unknown, for example, when your program is processing SQL statements entered<br />

by users.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

1-836 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

statement.env SQL statement environment containing the executed SQL statement.<br />

cols Number of report columns generated.<br />

SQLNumResultCols Parameters

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

Saved successfully!

Ooh no, something went wrong!