rupertb
31st March 2003, 16:08
Hi All
I'm trying to trap the arrow key's scan results, unfortunately keyin$(99) does not return the scan codes although keyin$() does - any reasons why?

Regards,
Rupert

NPRao
31st March 2003, 22:35
Rupert,

You can try to use -

long in.ret 4R
Integer value of key pressed on input field. Cursor keys and zoom keys cannot be detected. Valid only in on.input, after.input, and after.field sections.

#define TAB chr$(9)
#define ARROW.LEFT chr$(8)
#define ARROW.DOWN chr$(10)
#define ARROW.UP chr$(11)
#define ARROW.RIGHT chr$(12)

rupertb
1st April 2003, 10:41
Thanks NP, unfortunately my screen doesn't have any input fields? The work around that seems to work for me is to create a 3gl graphical screen and then use the event handler to detect key presses.

Regards,
Rupert