because 4GL is a procedural language. The execution plan is: line by line.
The runtime cannot execute the if ... code line until the pause 7. line is not finished.
If you wants to implement this you have to use the event-driven model and add a trigger ON "F4".
END-ERROR is almost always what you want and generally the only thing you need. END-KEY / ENDKEY is only useful if you deliberately assign an ENDKEY, using something like 'ON F9 ENDKEY', which nobody ever does (in my experience).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.