![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-script-reference-rev2-0/cx-supervisor-script-reference-rev2-0_reference-manual_744212135.webp)
CHAPTER 6 – Functions and Methods
OMRON
Page 122
Revision 2.0
Syntax
return = DBState(level, state)
Remarks
Argument
Type
Description
return
bool
1 if the specified level is in the requested state, otherwise 0
level
text
A text point or constant specifying the connection level. This
may be a Connection or Recordset level.
state
text
The requested state must be either "Open" or "Closed"
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.
DBSupports
Description
Returns TRUE if the specified Recordset supports the requested operation.
Syntax
return = DBSupports(level, operation)
Remarks
Argument
Type
Description
return
bool
1 if the specified Recordset supports the requested operation,
otherwise 0
level
text
A text point or constant specifying the connection level. This
must be a Recordset level.
operation
text
The requested operation may be one of:
"AddNew", "Bookmark", "Delete", "Find","MovePrevious" or
"Update"
Typical Example
Result = DBSupports("CSV.Recordset1", "Delete")
Checks if records can be deleted in 'Recordset1'
Содержание 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...