[Stackoverflow] [Progress OpenEdge ABL] Progress compile option 'requireReturnValues' fails with error throwing

  • Thread starter Thread starter W0lfw00ds
  • Start date Start date
Status
Not open for further replies.
W

W0lfw00ds

Guest
I have set the compile option requireReturnValues="Error".

I tried to compile the following example code but it doesn't pass the option:

Code:
METHOD PUBLIC LOGICAL checkValue(i_cValue AS CHAR):
    IF i_cValue <> ? THEN DO:
        RETURN TRUE.
    END.
    
    UNDO, THROW NEW Progress.Lang.AppError("Invalid value!").
END METHOD.

If I rearrange the code, by moving RETURN TRUE. into the end, it works as intended.

Is there any other way to make it work?

Continue reading...
 
Status
Not open for further replies.
Back
Top