Record.Next([Integer]) Method

Version: Available or changed with runtime version 1.0.

Steps through a specified number of records and retrieves a record.

Syntax

[Steps := ]  Record.Next([Steps: Integer])

Parameters

Record
 Type: Record
An instance of the Record data type.

[Optional] Steps
 Type: Integer
Specifies the direction of the search and how many records to step over. This parameter follows the following rules:

  • > 0  Search Steps records forward in the table.
  • < 0  Search Steps records backward in the table.
  • = 0  Stay on the same record in the table. If you do not specify this parameter, then the next record is found.

Return Value

[Optional] Steps
 Type: Integer

Record Data Type
Get Started with AL
Developing Extensions
AL Database Methods and Performance on SQL Server