18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

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.

Appendix: Built-in Scripting Language<br />

1 Invalid handler<br />

2 Invalid parameter<br />

Notes<br />

You may find this function useful for selecting a subset of records, such as "all salespersons based in<br />

California" ("state = 'CA'"). Remember to call ODBCQuery after calling this function.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag ODBCSetFilter( 3, "Name='Morgan'" )<br />

ODBCSetSort<br />

Sorts the records selected in a database.<br />

Function Group Execution Windows Embedded Thin Client<br />

ODBCSetSort ODBC Synchronous Supported Not supported Executed on Server<br />

Syntax<br />

ODBCSetSort(numHandler,strSort)<br />

numHandler<br />

strSort<br />

The handler returned by the ODBCOpen function.<br />

The SQL ORDER BY clause.<br />

Returned value<br />

0 Success<br />

1 Invalid handler<br />

2 Invalid parameter type<br />

Notes<br />

You can use this feature to sort the records in one or more columns. Remember to call ODBCQuery after<br />

calling this function.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag ODBCSetSort( 5, "Name DESC" )<br />

ODBCUnbindCol<br />

Unbinds a column that was previously bound using the ODBCBindCol function.<br />

Function Group Execution Windows Embedded Thin Client<br />

ODBCUnbindCol ODBC Synchronous Supported Not supported Executed on Server<br />

Syntax<br />

ODBCUnbindCol(numHandler,strColName)<br />

numHandler<br />

Page 704<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!