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 - C 及 C++ 编程 » API 参考 » UltraLite C++ API 参考 » UltraLite_Cursor_iface 类

 

Next 函数

将游标向前移动一行。

语法
bool UltraLite_Cursor_iface::Next()
返回值
  • 如果游标向前移动成功,则返回 true。尽管返回 true,但当游标成功移动到下一行时也有可能发出错误信号。例如,在计算 SELECT 表达式时,可能发生转换错误。在这种情况下,检索列值时也会返回错误。

  • 如果向前移动失败,则返回 false。例如,可能没有下一行。在这种情况下,游标的最终位置为AfterLast 函数