Using 'INPUT' to get data

BlitzMax Forums/BlitzMax Beginners Area/Using 'INPUT' to get data

767pilot(Posted 2006) [#1]
I am using the following to prompt for a filename but when it runs the input line the program locks


Local filename:String
Local f:TStream
Local x:Int,y:Int


filename=Input("filename to save: ")
filename=filename+".lvl"


f=WriteFile(filename)



Any ideas why this is please? With Blitz3D it gave me a prompt at the top left of the screen with the cursor but this doesnt seem to work

Thanks
Graham


degac(Posted 2006) [#2]
In Bmax input() works in the console only. For you game/program you need to create a proper Input functions (looks at GetChar &Co)


Azathoth(Posted 2006) [#3]
You can change StandardIOStream to something else other than the console.


767pilot(Posted 2006) [#4]
thanks

Ive just come across HighGUI and its just what I need for my buttons, textbox etc so that will suit me just fine and dandy

Graham


SebHoll(Posted 2006) [#5]
Couldn't you use RequestFile$() to load a file requestor?