omron — DBCursorGetValue

Appendix: Built-in Scripting Language This is an optional parameter. Returned value In case of error, returns a negative number. Otherwise, returns 0. Examples As used in a Math worksheet: DBCursorCurrentRow Returns the row number of the current row (i.e., the cursor position) in a SQL result set. Syntax DBCursorCurrentRow( numCur , " optStrErrorTag " ) numCur The cursor handle of the result set. The cursor handle is returned by DBCursorOpen or DBCursorOpenSQL . optStrErrorTag The name of a String tag that will receive detailed error messages, if errors occur during runtime. Note:

The tag name must be enclosed in quotes, as shown in the syntax diagram, or else the project will try to get the value of the named tag. This is an optional parameter. Returned value Returns the number of the current row. In case of error, returns a negative number. Examples As used in a Math worksheet: DBCursorGetValue Gets the value of the specified column of the current row (i.e., the cursor position) in a SQL result set. Syntax DBCursorGetValue( numCur , strColumn , " optStrErrorTag " ) InduSoft Web Studio Page 623 Tag Name Expression nErrorCode DBCursorColumnInfo( nCursor, 2, 0 ) // Gets the column name of the second column in the result set.

Function Group Execution Windows Embedded Thin Client DBCursorCurre ntDRaotawbase/ERP Synchronous Supported Supported Supported Note: This feature emulates SQL (Structured Query Language) database operations. You should be familiar with how SQL commands are formed and executed before you use this feature. Tag Name Expression nRow DBCursorCurrentRow( nCursor ) Function Group Execution Windows Embedded Thin Client DBCursorGetVa luDeatabase/ERP Synchronous Supported Supported Supported Note: This feature emulates SQL (Structured Query Language) database operations. You should be familiar with how SQL commands are formed and executed before you use this feature.