I'm looking for some kind of assertion or exception mechanism. I know __try, __catch, __finally. But i don't know how "throw" an exception when something happened. I have seen in help definition of ExceptionCode type, which contains:
_ _USER _EXCEPTION _BASE := 16#00010000
So maybe it is possible somehow to throw an exception.
Do we have some kind of assertion mechanism in order to stop whole application if some requirements are not fulfilled?
Now I have dummy function to do that:
FUNCTION assert : BOOL
stopProgram : BOOL;
tmp : INT := 0;
IF stopProgram THEN
tmp := 1 / tmp;