I have been using ON KEY LABEL for years in my applications. It works great.
Place this in your setup code.
PUSH KEY CLEAR
ON KEY LABEL F2 DO 'my.prg' or ON KEY LABEL ALT+S DO 'my.prg'
Use POP KEY in the cleanup code.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only