Following program crashes when a FUNCTION KEY IS PRESSED, either ALONE or with SHIFT, ALT or CTRL - Other keys work..!
I appriciate the code is not correct but why the PRINT should crash just because a Function Key is pressed is beyond me!
XBLite Version: Latest 240 downloaded today, recompiled ... Compiler 0.0012 Xst: 0.059 Xsx: 0.019
Microsoft PMU: 1.50.4048 GoASM: 0.56.4
**PROGRAM BEGIN**
CONSOLE
IMPORT "xst" ' Standard library : required by most programs IMPORT "xio" ' Console input/ouput library IMPORT "kernel32" DECLARE FUNCTION Entry()
FUNCTION Entry()
DO keyCode = XioInkey () IF keyCode THEN keyCode$ = CHR$(keyCode) PRINT ".."; keyCode END IF Sleep (0) LOOP UNTIL keyCode = 13
END FUNCTION END PROGRAM
**PROGRAM END** |