keyboard string

BlitzMax Forums/BlitzMax Beginners Area/keyboard string

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

might be easier than that. Blitz does it for you:


Graphics 640,480,0

Local mystring:String
Repeat
	If KeyHit(KEY_ENTER)
		mystring = ""
		c=1
		While c>0 
			

			c= GetChar()
			mystring:+ Chr(c)
		Wend
		
	EndIf
	DrawText mystring,10,10
	Flip
	Cls
Until KeyDown(KEY_ESCAPE)