App Crashes When RETURN from Procedure Setup Embed

Hi All

In the Procedure Setup embed I am calling another window. On exiting from that I window I have the following code if a certain condition is met:


When this code is run the app crashes - error is ACCEPT loop requires a window.

Any ideas? I do not want the procedure to run if the condition is met.


So the RETURN(Level:Benign) is to short cut the procedure?
If so you would want Level:Fatal or Level:Cancel wouldn’t you?

Hi Sean

Yes. I have learnt that now but solved the problem by doing the condition check in a source procedure before calling this procedure. Thanks for the info though.