Quite a minor issue, but wanted to report this. If the whole finally block, or flow-control statement, is inside an include file the error is not shown.
For example, this is not reported as an error:
test.p
DEFINE VARIABLE xError AS LOGICAL NO-UNDO.
{finally.i}
finally.i
FINALLY:
IF xError THEN RETURN ERROR.
END FINALLY.
Neither is this:
test.p
DEFINE VARIABLE xError AS LOGICAL NO-UNDO.
FINALLY:
{finally.i}
END FINALLY.
finally.i
IF xError THEN RETURN ERROR.
Following code works as expected and error is reported:
DEFINE VARIABLE xError AS LOGICAL NO-UNDO.
FINALLY:
IF xError THEN RETURN ERROR.
END FINALLY.
Quite a minor issue, but wanted to report this. If the whole finally block, or flow-control statement, is inside an include file the error is not shown.
For example, this is not reported as an error: test.p
finally.i
Neither is this: test.p
finally.i
Following code works as expected and error is reported: