Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
继续执行 ULTable.FindLast 搜索,从表中的当前位置向后移动,查看上一行是否与当前索引中的某个值或部分值集完全匹配。
Public Function FindPrevious(ByVal numColumns As Short) As Boolean
public bool FindPrevious(short numColumns)
numColumns 对于复合索引,该参数表示查找中使用的列数。例如,如果有一个三列的索引,而需要查找的值仅基于第一列进行匹配,则应为第一列设置值,然后将 numColumns 的值设置为 1。
如果成功则返回 true,否则返回 false。
ULException 类 发生 SQL 错误。
如果上一行与索引值完全匹配,则游标将停留在该行上。失败时,游标位置在第一行之前(如 ULDataReader.IsBOF 属性所示)。
如果在行更新过程中修改了要搜索的列值,则 FindPrevious 方法行为处于不确定状态。