Introduction | Language Structure | IB Statements | File System | Comet 32 Runtime | Index |
To determine which key was pressed, add the following code to your program:
KEYCODE=ASC(RSUB(HFLAG$),1,1)
FKEY$=RSUB(STRING(KEYCODE+1000),2,3)
For example, the following instructions test for the F12 key:
KEYCODE=ASC(RSUB(HFLAG$),1,1)
FKEY$=RSUB(STRING(KEYCODE+1000),2,3)
IF FKEY$ = "003" THEN ...
Please see also: