Re: [Gambas-user] String length of Key.Text

2015-10-14 Thread zxMarce
Hey, don't thank me, it was already that way when I came in! Now seriously, all printable ASCII are *&H20* (32 dec, corresponds to the *SPACE*) to *&H7E* (126, corresponds to the tilde "*~*"), *&H7F* being non-printable ASCII *DEL*. All 7-bit codes below *&H20* (space) and above *&H7E* are non-p

Re: [Gambas-user] String length of Key.Text

2015-10-14 Thread Moviga Technologies
Thank you! That makes sense! I was looking for a way to determine that a printable character key was pressed. Any suggestions? -- ___ Gambas-user mailing list Gambas-user@list

Re: [Gambas-user] String length of Key.Text

2015-10-13 Thread ...
Ctrl is actually a modifier key. It just lowers (resets, or sets to zero) bit 6 (bit weight is 64 decimal) of the character it modifies. For example, ASCII code 7 is BEL. It's represented by Ctrl-G. The ASCII code of G is 71. 71 - 64  = 7. If you look for the ASCII code of W (87) and subtract 6

[Gambas-user] String length of Key.Text

2015-10-13 Thread Moviga Technologies
If I hit Ctrl+W on the keyboard, 'Debug Key.Text' prints '^W'. If I do 'Debug String.Len(Key.Text)' this prints 1... I understand that ^ represents Ctrl, but it is still a character?? Why is it not counted? --