Statements Foundation
Statements are used in structuring programs and determine program flow at runtime. This includes branching, loops and error handling. A statement is recognized by the compiler, not the preprocessor, and compiles directly into executable code. Statements define control structures that control the program flow depending on conditions or specific program circumstances.
The syntax elements for statements are keywords which introduce and terminate control structures. The following table lists all statements contained in the language scope of Xbase++.
Statement | Description | |
---|---|---|
IF | DO CASE | Branch |
ELSEIF | CASE | |
ELSE | OTHERWISE | |
ENDIF | ENDCASE | |
DO WHILE | FOR..TO | Loop |
ENDDO | NEXT | |
BEGIN SEQUENCE | Error handling | |
RECOVER | ||
ENDSEQUENCE | ||
BREAK | ||
RETURN | Terminates a user-defined function or procedure |
Additional discussion of statements is found in the reference documentation.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.