Detecting Press Of Arrow Keys in Algorithms
Here is a small snippet to detect the press of arrow keys in the form keypress event.
PUBLIC CONST ARROW_LEFT AS INTEGER = 4114
PUBLIC CONST ARROW_RIGHT AS INTEGER = 4116
PUBLIC CONST ARROW_UP AS INTEGER = 4115
PUBLIC CONST ARROW_DOWN AS INTEGER = 4117
PUBLIC SUB Form_KeyPress()
SELECT CASE Key.Code
CASE ARROW_LEFT
PRINT "You pressed the left arrow key."
CASE ARROW_RIGHT
PRINT "You pressed the right arrow key."
CASE ARROW_UP
PRINT "You pressed the up arrow key."
CASE ARROW_DOWN
PRINT "You pressed the down arrow key."
END SELECT
END