OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 123
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
Type
Description
returnstate
bool
1 if the function is successful otherwise 0
level
text
A text point or constant specifying the connection level. This
must be a Recordset 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’.
Содержание CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Страница 2: ...CX Supervisor Script Language Software Revision 2 0...
Страница 3: ......
Страница 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Страница 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Страница 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Страница 13: ......
Страница 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Страница 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Страница 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Страница 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...