The Return object can be used by the Function to return one* value to the Calling Procedure.

The Return object takes a variable from the function and makes its contents available to the Calling Procedure much in the same way as the IN/OUT Parameter; however, the Return object only sends data out, providing an OUT-only one-way communication with the caller.

The Data type of the returned value is inherited from the data type of the variable (or parameter) that is passed through the Return object and set automatically upon carrying out the Syntax check.

Flow direction lines (arrows) cannot originate in the Return object; it can only terminate the connections.

Although the Return object is an exit point from the Function or Report, unlike the Exit object, the Return object can only occur once in the Procedure.

* The purpose of a Function is to perform an encapsulated set of instructions that accomplish a desired result. This may include the return of one value, many values, or none at all. To achieve the return of multiple values from a Function you can use the Parameter object.


Go to:
Table of Contents