4GL function

A 4GL program block defined with the FUNCTION statement. The function header follows the FUNCTION keyword and defines the name and formal argument list for the function. The function body (all statements between the function header and the END FUNCTION keywords) defines the actions of the function. The function header and the function body together are often called the function definition. To return values, use the RETURN statement within the function body. Frequently, a 4GL function is simply referred to as a function.

See also argument, function, programmer-defined function, program block, return value.