Is it possible to ERROR without the text

Hi all,

I’m wanting to create an error without the error text.
I want it to just go back to the record.

my code is like this

if not confirm(‘do you want to continue?’) then ERROR(‘fix it up’)

So when it sets off the error I don’t want the ERROR box to actually come up at all, or if it comes up to close straight away.

Can NAV do this?

Thanking you in advance

Use

if not confirm(‘do you want to continue?’) then

Exit;

So I guess you still need to call ERROR to get the rollback by the system?

Thanks Luc for your reply,

You’re exactly right - I need it to stop processing any further & roll back like an ERROR, just without the error message if possible.

use

if not confirm(‘do you want to continue?’) then

ERROR(’’);