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 参考 » ULTable 类 » FindPrevious 方法

 

FindPrevious(Int16) 方法

继续执行 ULTable.FindLast() 搜索,从表中的当前位置向后移动,查看上一行是否与当前索引中的某个值或部分值集完全匹配。

语法
Visual Basic
Public Function FindPrevious( _
   ByVal numColumns As Short _
) As Boolean
C#
public bool FindPrevious(
   short numColumns
);
参数
  • numColumns   对于复合索引,该参数表示查找中使用的列数。例如,如果有一个三列的索引,而需要查找的值仅基于第一列进行匹配,则应为第一列设置值,然后将 numColumns 的值设置为 1。

返回值

如果成功则返回 true,否则返回 false。

注释

如果上一行与索引值完全匹配,则游标将停留在该行上。失败时,游标位置在第一行之前 (ULDataReader.IsBOF)。

如果在行更新过程中修改了要搜索的列值,则 FindPrevious 行为处于不确定状态。

另请参见