MoveRelative method

UL Ext.: Positions the cursor relative to the current row.

Syntax
Visual Basic
Public Function MoveRelative( _
   ByVal offset As Integer _
) As Boolean
C#
public bool MoveRelative(
   int offset
);
Parameters
  • offset   The number of rows to move. Negative values correspond to moving backward.

Return value

True if successful, false otherwise. For example, the method fails if it positions beyond the first or last row.

Remarks

If the row does not exist, the method returns false, and the cursor position is after the last row (ULDataReader.IsEOF) if

offset is positive, and before the first row (ULDataReader.IsBOF) if the

offset is negative.

See also