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

This is an optional parameter.<br />

Returned value<br />

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

Examples<br />

As used in a Math worksheet:<br />

Tag Name<br />

Expression<br />

nRow DBCursorCurrentRow( nCursor )<br />

DBCursorGetValue<br />

Gets the value of the specified column of the current row (i.e., the cursor position) in a SQL result set.<br />

Function Group Execution Windows Embedded Thin Client<br />

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

DBCursorGetValue( numCur, strColumn, "optStrErrorTag" )<br />

numCur<br />

strColumn<br />

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

DBCursorOpenSQL.<br />

optStrErrorTag<br />

The name of the column.<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 value of the specified column. If the value is NULL or the cursor is invalid, then it returns an<br />

empty string with quality BAD.<br />

Examples<br />

As used in a Math worksheet:<br />

Tag Name<br />

Expression<br />

Tag DBCursorGetValue( nCursor, "Column1" )<br />

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

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

Saved successfully!

Ooh no, something went wrong!