Print Topic - Archive
XBLite Forum / XBLite Programming / GPF with Function Key pressed (XioInkey and PRINT)
Posted by: AJS, May 28, 2010, 3:34pm
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**
Posted by: XBLiteAdmin, August 14, 2010, 11:45am; Reply: 1
Thanks for the bug report for XioInkey. The correction has been made and will be
part of the next release of xblite.
d.
Print page generated: May 18, 2012, 8:24pm