If "1." is successful, then "A" will be displayed, but when "1." will end with error, nothing after it will be executed.
But I want "B" to be displayed in all cases. How to do it?
If "1." is successful, then "A" will be displayed, but when "1." will end with error, nothing after it will be executed.
But I want "B" to be displayed in all cases. How to do it?
thx
1) What you really need to do?
2) You can search on this forum for more. There are more threads about "Catching errors"
Comments
You can use some NAV functionality for launching a codeunit:
IF something throws an error in the called codeunit, this code intercepts it.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Simple example (not in NAV syntax)
I will have on push event:
1. xxx,xxx,xxx (as transaction)
2. Display msg 'A'
If "1." is successful, then "A" will be displayed, but when "1." will end with error, nothing after it will be executed.
But I want "B" to be displayed in all cases. How to do it?
thx
you should REALLY read the Application Designers Guide for NAV included on every NAV installation CD.
1) What you really need to do?
2) You can search on this forum for more. There are more threads about "Catching errors"
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.