Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - .NET 编程 » UltraLite .NET 2.0 API 参考 » ULDataReader 类

 

MoveRelative 方法

UL Ext.: 相对于当前行定位游标。

语法
Visual Basic
Public Function MoveRelative( _
   ByVal offset As Integer _
) As Boolean
C#
public bool MoveRelative(
   int offset
);
参数
  • offset   要移动的行数。负值对应于向后移动。

返回值

如果成功则返回 true,否则返回 false。例如,如果游标位于第一行或最后一行之外,则此方法失败。

注释

如果行不存在,则此方法返回 false,

如果 offset 为正值,游标位置在最后一行 (ULDataReader.IsEOF) 之后;

如果 offset 为负值,游标位置在第一行 (ULDataReader.IsBOF) 之前。

另请参见