Oracle Objects for OLE
Release 8.1.7

Part Number A85257-01

Library

Product

Contents

Moving to First and Last Rows

See Also
Quick Tour
Employee Form

To move to the first row of a dyanset, we use the DbMoveFirst method. We then call EmpRefresh() routine to refresh the data in the Employee form.

In our employee example, the First click event procedure looks like:

Private Sub cmdFirst_Click()

EmpDynaset.MoveFirst

Call EmpRefresh

End Sub

To move to the last row, we use the DbMoveLast method. We then call EmpRefresh() routine to refresh the data in the Employee form.

In our employee example, the Last click event procedure looks like:

Private Sub cmdLast_Click()

EmpDynaset.MoveLast

Call EmpRefresh

End Sub


 
Oracle
Copyright copy; 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents