CHAPTER 6 – Functions and Methods
DBClose
Description
Closes a Connection or Recordset. Closing a Connection will automatically close all recordsets
associated with it. Recordsets can be closed in isolation by selecting the appropriate level.
Syntax
returnstate = DBClose(level)
Remarks
Argument
returnstate
level
Typical Examples
Result = DBClose("Northwind.Order Details")
Closes the 'Order Details' Recordset
Result = DBClose("Northwind")
Closes the connection to the Northwind database, and also any Recordsets which may be open.
DBDelete
Description
Deletes the specified number of records from the current record position. This function works only at
the Recordset level. This function will fail if the Recordset is opened with a lock of 'Read Only'.
Syntax
returnstate = DBDelete(level, quantity)
Remarks
Argument
returnstate
level
quantity
Typical Examples
Result = DBDelete("Northwind.Order Details", 10)
Page 112
Type
bool
1 if the function is successful otherwise 0
text
A text point or constant specifying the connection level. This
should be a connection or recordset level.
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.
int
Number of records to delete.
Description
Description
Revision 2.0
OMRON
Need help?
Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?