inside a procedure I am opening a window and doing a return before the accept-loop starts or doing a return inside the accept-loop crashes the program.
If I doing Post(EVENT:CloseWindow) instead everything is fine…this behaviour isn’t documented, is it?
EDIT: I am using Clarion 10 with legacy templates and it is a MDI program
f1 procedure() window window... ... end code open(window) ! first case do doReturn accept !second case case field() of somefield case event() of event:accepted do doReturn end end end do doReturn doReturn routine ! closing window if opened... return