Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual page 136

Script language
Table of Contents

Advertisement

OMRON
Note:
If the "MovePrevious" operation is not supported then only 'Forward-Only' cursor
movements are supported.
DBUpdate
Description
Update the record being added in a Recordset. Used in conjunction with DBAddNew to commit a
new record.
Note:
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)
Remarks
Argument
returnstate
level
Typical Example
DBAddNew("Northwind.Order Details.OrderID")
DBAddNew("Northwind.Order Details.ProductID")
DBAddNew("Northwind.Order Details.Quantity")
DBAddNew("Northwind.Order Details.UnitPrice")
DBUpdate("Northwind.Order Details")
Each required field is added to the new record using multiple calls to DBAddNew(). When the
record is complete, it is added to the Recordset by calling the DBUpdate() function.
DBWrite
Description
Writes a set of records into a Recordset from the associated point(s). This function operates on both
Recordset and Field levels. At the Recordset level all the associated points values from the Points
will be written into the Recordset starting at the current record (1 page of values will be written for
each Point). At the Field level the associated values from the point are written into the Recordsets
starting at the current position. The number of elements written = number of elements in the Point.
This function will fail, if the Recordset is opened with a Lock of 'Read Only'.
Revision 2.0
Type
bool
1 if the function is successful otherwise 0
text
A text point or constant specifying the connection level. This
must be a Recordset level.
CHAPTER 6 – Functions and Methods
Description
Page 123

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents