How to input data without halting execution
BlitzPlus Forums/BlitzPlus Programming/How to input data without halting execution
| ||
How do I input text data without stopping the program from continuing its loop? |
| ||
http://www.blitzbasic.com/bpdocs/command.php?name=GetKey&ref=2d_cat |
| ||
I've always liked this one: http://blitzbasic.com/codearcs/codearcs.php?code=207 |
| ||
Neither of these work in Blitz Plus. |
| ||
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 |
| ||
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. |
| ||
em22 - they work fine with blitzplus, if you know how to use them;) |