Dbgetlasterror; Dbmove - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

Database Commands

6-17-5 DBGetLastError

6-17-6 DBMove

106
Command
Connection
Level
RollbackTransAll
Connection
TransCount
Connection
Requery
Recordset
CancelUpdate
Recordset
Find
Recordset
FinNext
Recordset
Source
Recordset
Filter
Recordset
Save
Recordset
Description
Returns the last error string generated by the Database provider, and displays
it in a message box.
Syntax
returnstate = DBGetLastError(level, display)
Remarks
Argument
Type
returnstate
text
level
text
display
bool
Typical Examples
DBGetLastError("Northwind")
or
DBGetLastError("Northwind", TRUE)
Both the above lines will get and display the last error to occur for the
Northwind connection.
ErrMsg = DBGetLastError("Northwind", FALSE)
The last error to occur for the Northwind connection is stored Text point
'ErrMsg', without displaying a message box.
Description
SECTION 6 Functions and Methods
Description
Cancels all changes and ends all
transactions.
Returns the number of pending
transactions.
Re-run the Recordset Query.
Cancel a DBAddNew operation.
Find the specified criteria in a Recordset.
Combined DBMove("Next"), DBFind()
operation.
Modify the Recordset source.
Apply a filter to a Recordset.
Saves a Recordset in XML format.
Description
The error message from the provider
A text point or constant specifying the
connection level. This must be a Connection
level.
Optional flag. By default DBGetLastError will
display the providers error message in a
message box. Setting this flag to FALSE
prevents this action.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents