Dbsupports; Dbupdate - Omron CX-Supervisor Reference Manual

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

Advertisement

Database Commands

6-17-12 DBSupports

Note:

6-17-13 DBUpdate

Note:
112
Argument
Type
level
text
state
text
Typical Examples
State = DBState("Invoice", "Closed")
Checks if the Connection "Invoice" is currently closed.
State = DBState("Northwind.Customers", "Open")
Checks if the Recordset "Customers" is currently open.
Description
Returns TRUE if the specified Recordset supports the requested operation.
Syntax
return = DBSupports(level, operation)
Remarks
Argument
Type
return
bool
level
text
operation
text
Typical Example
Result = DBSupports("CSV.Recordset1", "Delete")
Checks if records can be deleted in 'Recordset1'
If the "MovePrevious" operation is not supported then only 'Forward-Only'
cursor movements are supported.
Description
Update the record being added in a Recordset. Used in conjunction with
DBAddNew to commit a new record.
DBUpdate is ONLY required when DBAddNew has been used at the Field
level. When DBAddNew is used at the Recordset level an additional DBUpdate
is not required as this is performed automatically.
Syntax
returnstate = DBUpdate(level)
SECTION 6 Functions and Methods
Description
A text point or constant specifying the
connection level. This may be a Connection or
Recordset level.
The requested state must be either "Open" or
"Closed"
Description
1 if the specified level is in the requested state,
otherwise 0
A text point or constant specifying the
connection level. This may be a Connection or
Recordset level.
The requested operation may be one of:
"AddNew"
"Bookmark"
"Delete"
"Find"
"MovePrevious"
"Update"

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents