The return Statement is not Found in the Function Body

Description

The Fore language specification determines that the Return statement must be in function bodies.

Troubleshooting Tips

Add the Return statement in the function body. The type of the returned value should match the function type.

Example

Class TestClass: Object
    Function Test: Integer;
    Begin
        
    End Function Test;
End Class TestClass;

When the specified code is compiled, the following error is displayed: the return statement is not found in the function body. To resolve the error, add the Return statement to the body of the Test function and a returned integer value after it.

See also:

Compiler Messages