18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

Note: This feature emulates SQL (Structured Query Language) database operations. You should be<br />

familiar with how SQL commands are formed and executed before you use this feature.<br />

Syntax<br />

DBCursorColumnCount( numCur, "optStrErrorTag" )<br />

numCur<br />

The cursor handle of the result set. The cursor handle is returned by DBCursorOpen or<br />

DBCursorOpenSQL.<br />

optStrErrorTag<br />

The name of a String tag that will receive detailed error messages, if errors occur during<br />

runtime.<br />

Note: The tag name must be enclosed in quotes, as shown in the syntax<br />

diagram, or else the project will try to get the value of the named tag.<br />

This is an optional parameter.<br />

Returned value<br />

Returns the number of columns. In case of error, returns a negative number.<br />

Notes<br />

See also DBCursorRowCount.<br />

Examples<br />

As used in a Math worksheet:<br />

Tag Name<br />

Expression<br />

nErrorCode DBCursorColumnCount( nCursor )<br />

DBCursorColumnInfo<br />

Gets information about a column in a SQL result set. The column is specified by number rather than by<br />

name, so this function can be used to retrieve unknown column names.<br />

Function Group Execution Windows Embedded Thin Client<br />

DBCursorColumnInfo Database/ERP Synchronous Supported Supported Supported<br />

Note: This feature emulates SQL (Structured Query Language) database operations. You should be<br />

familiar with how SQL commands are formed and executed before you use this feature.<br />

Syntax<br />

DBCursorColumnInfo( numCur, numColumn, numTypeInfo, "optStrErrorTag" )<br />

numCur<br />

numColumn<br />

The cursor handle of the result set. The cursor handle is returned by DBCursorOpen or<br />

DBCursorOpenSQL.<br />

<strong>InduSoft</strong> Web Studio Page 739

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

Saved successfully!

Ooh no, something went wrong!