is-screen-3-proc.
perform until exit-pushed
accept screen-3
on exception perform is-screen-3-evaluate-func
end-accept
end-perform.
destroy window-handle.
initialize key-status.
is-screen-3-evaluate-func.
evaluate true
when exit-pushed
perform is-screen-3-exit
when event-occurred
if event-type = cmd-close
perform is-screen-3-exit
end-if
when key-status = 1000
perform screen-3-pb-2-link-to
end-evaluate.
move 1 to accept-control.
is-screen-3-exit.
set exit-pushed to true.
screen-3-pb-1-link-to.
modify screen-3-lb-1 item-to-add "Hello".
.
With manually assigned exception values it is possible to have a menu entry and/or function key generate the same exception value so that the user could perform the function in more than one way. In fact, "Link To" is the preferred way to specify a paragraph to execute when the user selects a menu entry.
Article ID: 131
Created: June 4, 2010
Last Updated: June 4, 2010
Author: Support KB Author
Online URL: https://support.veryant.com/phpkb/article.php?id=131