NEXT
Collapse the table of content
Expand the table of content

NEXT Function (TestPage)

Sets the current row of the test page as the next row in the dataset.

OK := TestPage.NEXT

Parameters

TestPage
Type: TestPage

The test page variable that you use to refer to the test page.

Type: Boolean

true if the current row was set to the next row in the dataset successfully; otherwise, false.

If TestPage is closed or has never been opened, then the function call fails.

This example requires that you create a TestPage variable named CustomerList with a Subtype of Customer List.

CustomerList.OPENVIEW;
// Loops through all customers and displays the customer name.
IF CustomerList.FIRST THEN
  REPEAT
    MESSAGE(CustomerList.Name);
UNTIL NOT CustomerList.NEXT;

Show:
© 2016 Microsoft