INPUT problem

BlitzMax Forums/BlitzMax Programming/INPUT problem

wildboar(Posted 2005) [#1]
When using the code below (Win 2000/BM1.14) the program freezes until I hit CTRL-C, then processes the input statement properly. Does anyone know why this is happening? The code is copied from the BM docs. (after checking... my old code pre 1.14 no longer works properly with INPUT)

name$=Input("What is your name")
Print "Hello "+name


Who was John Galt?(Posted 2005) [#2]
To use print you need to set up a graphics screen and use flip to display the results.


tonyg(Posted 2005) [#3]
The 'output' window acts as (sort of) graphics window.
However, it doesn't have focus until you click in it and then type your response to the Input command. Ctrl-C gives it focus as well.


wildboar(Posted 2005) [#4]
tonyg: You are correct! Thanks for pointing that out. Did this behavior change in 1.14 or 1.12? I don't remember it acting this way before... but, maybe I just never noticed since I rarely use INPUT.

-dak


tonyg(Posted 2005) [#5]
I think it's changed with the new IDE code. I can't remember having to refocus it but don't really use input either.