How to input data without halting execution

BlitzPlus Forums/BlitzPlus Programming/How to input data without halting execution

schilcote(Posted 2009) [#1]
How do I input text data without stopping the program from continuing its loop?


H&K(Posted 2009) [#2]
http://www.blitzbasic.com/bpdocs/command.php?name=GetKey&ref=2d_cat


Matty(Posted 2009) [#3]
I've always liked this one:

http://blitzbasic.com/codearcs/codearcs.php?code=207


em22(Posted 2009) [#4]
Neither of these work in Blitz Plus.


CloseToPerfect(Posted 2009) [#5]
I have a function in the archives that works in B+ and has a demo with it.

http://www.blitzbasic.com/codearcs/codearcs.php?code=2441

CTP


Sauer(Posted 2009) [#6]
You should really write your own with a combination of GETKEY() and string functions. The key is using if statements instead of loops, and calling your input function every iteration of the loop. All you have to really do is check for CHR$(8) which is a backspace, and a CHR$(28) which I believe is enter. Backspace makes the string one character shorter, enter produces the string to the rest of your code. Everything else just ads a CHR$(GETKEY()) to your string.


Matty(Posted 2009) [#7]
em22 - they work fine with blitzplus, if you know how to use them;)