More general useability of alert(), exit(), and redir()

I do not know, why the macros redir, exit and alert have such restricted situations of use. I give some examples:

  • At the moment I spend extra time to construct extra form applications I exit to from an application just to be able to use the alert() function for telling the user, what is the reason that it oes not work.
  • Using a control application for login I need the ability in onValidate to exit() the application for various reasons. At present I need to force the code structure because exit() cannot be used.
  • I am currently using redir(), because alert or exit are not available in the concret situation but I find similar limitations in all applications except form.

A more geral useability of alert(), exit() and redir() would be of great help!