In the earlier article, we where using the ConfirmHandler – but confirm is not everything a function can contain. So why not add the handling of Message Boxes
First, let us a add simple test message function to the previous created “doTest” codeunit. The function could look this:
cside | | copy code | | ? |
PROCEDURE TestMessage@1112800001(useWrong@1112800000 : Boolean) : Boolean; |
BEGIN |
IF useWrong THEN |
MESSAGE('Wrong Message') |
ELSE |
MESSAGE('Test Ok'); |
EXIT(TRUE); |
END; |
Read more »