Next (RecordsetCursor function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 1: Line 1:
{{Template:RecordsetCursor:Next subtitle}}
{{Template:RecordsetCursor:Next subtitle}}
This [[Notation conventions for methods#Callable methods|callable]]
This [[Notation conventions for methods#Callable methods|callable]]
method positions the cursor on the “next” record in the set,
method returns a <var>CursorState</var> enumeration
and it returns a <var>CursorState</var> enumeration
indicating the state of the cursor after it is moved.
indicating the state of the cursor after the operation.
==Syntax==
==Syntax==
{{Template:RecordsetCursor:Next syntax}}
{{Template:RecordsetCursor:Next syntax}}

Revision as of 00:10, 27 April 2011

Move cursor to the next record in the set (RecordsetCursor class)

This callable method returns a CursorState enumeration indicating the state of the cursor after it is moved.

Syntax

[%cursorState =] recordsetCursor:Next

Syntax terms

%cstate If specified, a declared enumeration object of type CursorState to contain the state of the cursor after the completion of Next. Valid values are described in "Cursor state".
%rscursor An instantiated RecordsetCursor object.

Usage notes

  • Next may be issued if the cursor is in one of two states:
    • HasRecord &mdash; Advances to the next record (if there is one).
    • BeforeStart &mdash; Advances to the first record.
  • If Next is called on a cursor whose state is AfterEnd, the request is cancelled.
  • After issuing Next, the cursor is left in one of two states:
    • HasRecord &mdash; The cursor moved to a new record, and it is ready to go.
    • AfterEnd &mdash; The cursor ran off the end, and it points to no record.

See also