QB64 Phoenix Edition
INKEY$ doesn't work with fixed length strings - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11)
+--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2)
+---- Forum: GitHub Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=42)
+---- Thread: INKEY$ doesn't work with fixed length strings (/showthread.php?tid=2893)

Pages: 1 2 3 4


RE: INKEY$ doesn't work with fixed length strings - Pete - 08-01-2024

Quote:Don't think I have the patience to wait, I could die tomorrow and the world would have to suffer the loss of my perspective, that would be a shame. ;-))
Or you could die today, and we'd have one more day to get over it. Big Grin j/k

Too much talk about dying in this thread including dying on hills. I mean it's all fun and games until someone's keyboard loses an 'I'.


Code: (Select All)
k$ = Input$(1)


I remember back in the QB days when some folks used that as a "Press Any Key" SLEEP alternative. I hadn't thought about the return value being only one character in length though, because I knew it worked with F1-F12 keys; but sure enough, it only returns the null character for those keys. Good to know.

Pete