public Move ( int flags ) : void | ||
flags | int | The direction for the move. If no direction
/// is specified, the Cursor will remain on the current position.
/// Possible flags are:
///
|
return | void |
private void MoveNegative() { Cursor c = new Cursor(db); try { c.Move(UpsConst.UPS_CURSOR_NEXT); } catch (DatabaseException e) { Assert.AreEqual(UpsConst.UPS_KEY_NOT_FOUND, e.ErrorCode); } }
private void Move() { Cursor c = new Cursor(db); byte[] k = new byte[5]; byte[] r = new byte[5]; k[0] = 0; db.Insert(k, r); k[0] = 1; db.Insert(k, r); k[0] = 2; db.Insert(k, r); k[0] = 3; db.Insert(k, r); k[0] = 4; db.Insert(k, r); c.Move(UpsConst.UPS_CURSOR_NEXT); c.Move(UpsConst.UPS_CURSOR_NEXT); c.Move(UpsConst.UPS_CURSOR_PREVIOUS); c.Move(UpsConst.UPS_CURSOR_LAST); c.Move(UpsConst.UPS_CURSOR_FIRST); }