Top > Lycia reference > Querix 4GL > Statements > CONTINUE
To meet your needs, we constantly work to improve Querix products.
This means that Lycia documentation is developing as well.
In case you have found a certain dissonance between the provided information and the actual behavior of Lycia 3 and/or your applications, please, let us know about this via documentation@querix.com so that we can introduce the necessary changes to our documentation.
Thank you for your attention and cooperation.
CONTINUE statement is used to cause the FOR, WHILE and several other statements to begin a new cycle, if it is permitted by the present condition. The CONTINUE statement is also used to return from a sub-menu to the upper menu in the MENU statement. Here are the statements which can be used with the CONTINUE statement:
The CONTINUE INPUT statement is used both for INPUT and INPUT ARRAY statements. The CONTINUE DISPLAY combination is used for the DISPLAY ARRAY statement.
CONTINUE keyword can be used in WHENEVER.
After CONTINUE CONSTRUCT and CONTINUE INPUT statements all subsequent statements in the current control block are skipped. The cursor is moved to the field that has been active before that; the user is allowed to enter other data to that field.
CONTINUE FOR, CONTINUE FOREACH, or CONTINUE WHILE keywords start a new cycle of the FOR, FOREACH, or WHILE loop respectively, if conditions allow. If conditions prevent such behavior, a loop is terminated.
CONTINUE DISPLAY keywords can be used only within the DISPLAY ARRAY statement. They are not valid within a simple DISPLAY statement.
After CONTINUE DISPLAY keywords all subsequent statements in the current control block of the DISPLAY ARRAY statement are skipped. The array is re-displayed. However, if one of the previous control blocks has displayed other values to one or more fields of the screen array, these values will continue being displayed and the initial values will not be restored.
If the CONTINUE MENU statement occurs within MENU compound statement, it causes 4GL to ignore the statements that follow CONTINUE MENU statement and re-display the menu so that it is possible to choose other menu option.