Welcome, Guest.
Please login or register.
GPF with Function Key pressed (XioInkey and PRINT)
Forum Login
Login Name: Create a new account
Password:     Forgot password

XBLite Forum    General Boards    XBLite Programming  ›  GPF with Function Key pressed (XioInkey and PRINT)
Users Browsing Forum
No Members and 1 Guests

GPF with Function Key pressed (XioInkey and PRINT)  This thread currently has 2,223 views. Print Print Thread
1 Pages 1 Recommend Thread
AJS
May 28, 2010, 3:34pm Report to Moderator Report to Moderator
Baby Member
Posts: 2
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**
Logged Offline
Private Message Private message
XBLiteAdmin
August 14, 2010, 11:45am Report to Moderator Report to Moderator
Administrator Group
Posts: 44
Thanks for the bug report for XioInkey. The correction has been made and will be
part of the next release of xblite.

d.
Logged Offline
Site Site Private Message Private message Reply: 1 - 1
1 Pages 1 Recommend Thread
Print Print Thread

XBLite Forum    General Boards    XBLite Programming  ›  GPF with Function Key pressed (XioInkey and PRINT)

Thread Rating
There is currently no rating for this thread