Moves the cursor to the specified row in a SQL result set and copies that row's values to the mapped tags. If the specified row doesn't exist — that is, if it's outside the range of the result set — then the function returns an error code and doesn't change the mapped tags.
Function | Group | Execution | Windows | Embedded | Thin Client |
---|---|---|---|---|---|
DBCursorMoveTo | Database/ERP | Synchronous | Supported | Supported | Supported |
DBCursorMoveTo( numCur, numRow, "optStrErrorTag" )
This is an optional parameter.
In case of error, returns a negative number. Otherwise, returns 0.
Tag Name | Expression |
---|---|
nErrorCode | DBCursorMoveTo( nCursor, 4 ) // Moves the cursor to the fourth row of the result set and copies those values. |