Keywords Foundation
Keywords are those words which have a special meaning to the Xbase++ compiler. These words may not be used as identifiers for variables, procedures, functions or methods. Also, they cannot be redefined. The following tables list all keywords for the Xbase++ compiler:
ANNOUNCE | RETURN *) | PRIVATE *) |
REQUEST | STATIC | PUBLIC *) |
INIT | LOCAL | FIELD |
EXIT | MEMVAR *) | IN |
FUNCTION *) | PARAMETERS *) | |
PROCEDURE *) | DECLARE *) | |
|
WHILE | END | NEXT |
LOOP | DO | BEGIN |
EXIT | CASE | SEQUENCE *) |
ENDDO | OTHERWISE *) | RECOVER *) |
IF | ENDCASE | USING |
ELSE | FOR | ENDSEQUENCE |
ELSEIF | TO | WITH |
ENDIF | STEP | |
|
CLASS | VAR | PROTECTED |
IS | READONLY | |
SHARING | ASSIGN | SHARED |
ENDCLASS | EXPORTED | |
METHOD | HIDDEN |
Keywords serve to structure the program code, define variables, and control the execution of the program. Only the first four characters of some keywords are significant to preserve compatibility. This means that the abbreviations containing four or more letters of the keywords can also not be used as identifiers for variables or functions. However, keywords should always be written in their entirety in program code. This improves the readability of the program code and assures that the compiler can recognize possible errors in the program code during compilation.
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.