Using read-only record lists / DISPLAY ARRAY control instructions |
CONTINUE DISPLAY skips all subsequent statements in the current control block and gives the control back to the dialog.
The CONTINUE DISPLAY instruction is useful when program control is nested within multiple conditional statements, and you want to return the control to the dialog. If this instruction is called in a control block that is not AFTER DISPLAY, further control blocks might be executed according to the context.
Actually, CONTINUE DISPLAY just instructs the dialog to continue as if the code in the control block was terminated (i.e. it's a kind of GOTO end_of_control_block). However, when executed in AFTER DISPLAY, the focus returns to the current row in the list, giving the user another chance to browse and select a row. In this case the BEFORE ROW of the current row will be invoked.