|Oracle® Objects for OLE Developer's Guide
11g Release 2 (11.2) for Microsoft Windows
|PDF · Mobi · ePub|
Recordset Property of the Oracle Data Control.
Gets the current record from a data control's recordset and displays the appropriate data in controls bound to that data control.
NOTE: This code snippet is intended to be placed in a complete application. The code snippet cancels changes made to bound controls and restores the data to the original values. To use this code snippet, copy it into the definition section of a form that has a data control named oradata1 (which has been successfully refreshed) and has the
KeyPreview property set to
Sub Form_KeyDown (KeyCode As Integer, Shift As Integer) Const KEY_ESCAPE = &H1B If KeyCode = KEY_ESCAPE Then oradata1.recordset.UpdateControls End If End Sub
Use this method to allow the user to cancel changes made to bound controls and restore the contents of those controls to their original values.
This method has the effect of making the current record current again, except that no events occur.
Note:For backward compatibility with earlier .VBX control, this method is also available as the method of data control's Recordset.