Language Elements and Reference:xpplrm

User-defined functions and procedures Foundation

User-defined functions and procedures provide the structure for Xbase++ programs. The difference between a function and a procedure is merely the presence of a return value: functions have a return value (sometimes termed the function value) and procedures return no value.

Functions and procedures are declared using the keywords FUNCTIONand PROCEDURE. This defines a section of program code and identifies it using an identifier. This section of code is then executed when the identifier for the function or procedure appears in program code.

Feedback

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.