Omron CX-Supervisor Reference Manual page 106

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

Advertisement

Database Commands
return = DBExecute(level, command, parameter)
Remarks
Argument
Type
return
level
text
command
text
parameter
text
Typical Examples
Pos
=
DBExecute("Northwind.Order
"UnitPrice > 14.00")
Find the next record satisfying the specified criteria, starting from the current
position. Valid search criteria include: "ProductName LIKE 'G*' " wildcard
search finds all records where ProductName starts with 'G', "Quantity = 5",
"Price >= 6.99". Only single search values are allowed, using multiple values
with 'AND' or 'OR' will fail.
DBExecute("Connection1.Recordset1",
"Table2")
Modify the Recordsets source to open a different table than configured.
DBExecute("Northwind.Shippers",
"CompanyName = 'United Package'")
Apply a filter to display only records with a company name 'United Package'
DBExecute("Northwind.Shippers", "Filter", "")
Cancel an existing filter (by passing an empty string)
DBExecute Commands
Command
Connection
Level
Connection
Connection
BeginTrans
Connection
CommitTrans
Connection
RollbackTrans
Connection
CommitTransAll
Connection
SECTION 6 Functions and Methods
Description
1 if the function is successful otherwise 0
except for "Find" and "FindNext" commands
which return the record number if found or if
not, set the current record to EOF and return -
1.
A text point or constant specifying the
connection level, which depends on the
command specified.
Command to execute. May be one of the
commands listed below.
Command parameter only required with certain
commands. For "Connection", this parameter
should hold the new connection string. For
"Find" and "FindNext" this parameter should be
the search criteria. For "Source" this is the
Recordset source. For "Filter" this is the
Recordset filter.
Description
Modify the connection string.
Begins a new Transaction.
Saves any pending changes and ends
the current transaction.
Cancels any changes made and ends
the transaction.
Saves all changes and ends all
transactions.
Details",
"Find",
"Source",
"Filter",
105

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents