A script-enabled browser is required for this page to function properly.

NEXT_KEY Built-in

Description

Navigates to the enabled and navigable primary key item with the next higher sequence number than the current item. If there is no such item, NEXT_KEY navigates to the enabled and navigable primary key item with the lowest sequence number. If there is no primary key item in the current block, an error occurs.

If the validation unit is the item, NEXT_KEY validates any fields with sequence numbers greater than the current item or less than the target item.

Syntax

PROCEDURE NEXT_KEY;

Built-in Type restricted procedure

Enter Query Mode yes

Parameters

none

NEXT_KEY Examples

/*

** Built-in: NEXT_KEY
** Example: Jump the cursor to the next primary key item in
** in the current block.
*/
BEGIN
Next_Key;
END;


Primary Key (Item) Property