OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 117
Note:
Some Providers do not support moving in the "Previous" direction i.e. cursors are
‘Forward-Only’. Some ‘Forward-Only’ providers do allow moving "First", while
some are strictly Forward-Only i.e. the Recordset has to be Re-queried effectively a
combined Close then Open operation to reset the cursor back to the start of the
Recordset. Some Providers that do support moving "Previous" do not support moving
to "Position". However, in order to be consistent, CX-Supervisor ensures that that all
operations (except "Bookmarks") will work for any connection to any provider but you
need to bear in mind when designing applications that use ‘Forward-Only’ cursors, that
there may be some ‘long-winded’ acrobatics being performed behind the scenes. See
DBSupports() for details of how to check the type of cursor in force.
Note:
Bookmarks will only work if specifically supported by the Provider.
DBOpen
Description
Opens a Connection or Recordset. Opening a Connection will automatically open all recordsets
associated with it, that are marked as auto open. Recordsets can be opened in isolation by selecting
the appropriate level.
Syntax
returnstate = DBOpen(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
may be a Connection or Recordset level.
Typical Examples
DBOpen("Northwind")
Open the connection to the Northwind database, and automatically open any Recordsets set to open
on connection.
done = DBOpen("Northwind.Order Details")
Just open a specific Recordset.
Содержание 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...