Top > Lycia reference > Querix 4GL > Statements > END
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.
END keyword serves as the first part of the statements that indicate the end of compound 4GL statements. It has the structure END keyword where the keyword is the name of the 4GL statement that is to be terminated. The diagram below illustrates the statements with which the END statement is used:
The END statement occurs at the last line of a compound 4GL statement – that is a 4GL statement that has additional clauses in it. It indicates that the statement is fully executed and completed rather than terminated (for termination of a compound statement when not all its elements are yet executed, use the EXIT keyword).
To delimit the DISPLAY ARRAY statement the END DISPLAY keywords are used. To delimit both INPUT and INPUT ARRAY statements the END INPUT keywords are used. The END RECORD keywords are used to complete the declaration of a program RECORD. For more details, see the sections on the corresponding statements in this reference. Below is an example of the END MAIN keywords demarcating the MAIN program block:
MAIN
...
END MAIN