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.

Normally you specify data.type as SQL.B.BASIC. If you specify sql.type as<br />

SQL.DATE, however, you can specify data.type as SQL.B.INTDATE; if you specify<br />

sql.type as SQL.TIME, you can specify data.type as SQL.B.INTTIME. If you specify<br />

sql.type as SQL.BINARY, SQL.VARBINARY, or SQL.LONGVARBINARY, you<br />

can specify data.type as SQL.B.BINARY.<br />

If you use SQL.B.INTDATE, the UniData BCI assumes the program variable holds<br />

a date in UniData internal date format and uses the DATEFORM conversion string<br />

to convert the internal date to an external format as required by the data source. To<br />

set or change the DATEFORM conversion string, see the SQLSetConnectOption<br />

function.<br />

If you specify sql.type as SQL.TIME and data.type as SQL.B.INTTIME, UniData<br />

BCI assumes the program variable holds a time in UniData internal time format and<br />

does not convert the data.<br />

SQLBindParameter uses the value of prec only for the following SQL data types:<br />

SQL.CHAR<br />

SQL.VARCHAR<br />

SQL.LONGVARCHAR<br />

SQL.WCHAR<br />

SQL.WVARCHAR<br />

SQL.WLONGVARCHAR<br />

SQL.BINARY<br />

SQL.VARBINARY<br />

SQL.LONGVARBINARY<br />

SQL.NUMERIC<br />

SQL.DECIMAL<br />

For all other data types, the extended parameters DBLPREC, FLOATPREC, and<br />

INTPREC determine the maximum length for strings representing double-precision<br />

numbers, floating-point numbers, and integers.<br />

SQLBindParameter 1-789

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

Saved successfully!

Ooh no, something went wrong!