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 />

numTypeInfo<br />

The number of the column about which you want to get information. Remember that a result set<br />

may include only some of the columns in the original database table.<br />

The type of information you want to get about the column:<br />

Value<br />

Description<br />

0 Column name<br />

1 Column data type<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 />

In case of error, returns a negative number. Otherwise, returns 0.<br />

Examples<br />

As used in a Math worksheet:<br />

Tag Name<br />

nErrorCode<br />

Expression<br />

DBCursorColumnInfo( nCursor, 2, 0 ) // Gets the column name of the second column in the result set.<br />

DBCursorCurrentRow<br />

Returns the row number of the current row (i.e., the cursor position) in a SQL result set.<br />

Function Group Execution Windows Embedded Thin Client<br />

DBCursorCurrentRow 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 />

DBCursorCurrentRow( 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 />

Page 740<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!