Top  >  Lycia reference  >  Querix 4GL  >  Statements  >  CONTINUE

CONTINUE

 

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.

 

 

CONTINUE with CONSTRUCT, INPUT, and INPUT ARRAY

 

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 in FOR, FOREACH, and WHILE Loops

 

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

 

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.

 

 

CONTINUE MENU Keywords

 

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.