I'm printing lots with individual print commands in a loop, and I want all of these to appear on the same line... I am accustomed to simply putting a semicolon at the end of the text to keep it from printing again at the next line, but this doesn't seem to be working... I've searched fruitlessly through the blitzmax help too, can't find anything there.
printing text, simple question
BlitzMax Forums/BlitzMax Programming/printing text, simple question global Text1:string = "hello"
global Text2:string = "My Name"
global Text3:string = "Is Earl!"
Drawtext Text1 + " " + Text2 + " " + Text3,0,0
or
Print Text1 + " " + Text2 + " " + Text3
global Text2:string = "My Name"
global Text3:string = "Is Earl!"
Drawtext Text1 + " " + Text2 + " " + Text3,0,0
or
Print Text1 + " " + Text2 + " " + Text3
StandardIOStream.WriteString "Hello World"
StandardIOStream.WriteString " End~n"
StandardIOStream.WriteString " End~n"
thanks but I don't think you guys are quite understanding :( I'm talking hundreds of variables in an array, I'm not going to take the time to do print array[0,0], etc..
and jsp I didn't understand what you did there can you please explain?
and jsp I didn't understand what you did there can you please explain?
Print command adds a newline character to each line.
WriteStdout does not.
"~n" adds a newline character.
WriteStdout does not.
"~n" adds a newline character.
ugh well I'll try the code then thx guys
What tonyg said.
Start Loop
StandardIOStream.WriteString "All your prints without newline"
End Of Loop
'New Line
StandardIOStream.WriteString "~n"
Start Loop
StandardIOStream.WriteString "All your prints without newline"
End Of Loop
'New Line
StandardIOStream.WriteString "~n"
problem solved thanks all :)
now I have another question.... how do I print a quote character? It won't let me because then, of course you have a misplaced quote sign :(
now I have another question.... how do I print a quote character? It won't let me because then, of course you have a misplaced quote sign :(
chr(34)
"~n" stands for newline
"~q" for quote
"~t" for tab
...
"~q" for quote
"~t" for tab
...
thanks again :)
I have updated the level editor... you can now add your own maps. Simply make it in the tilemapeditor, press 7, and it will give you the whole map in defdata's via print and exit. Simply copy all that over to mario and run it!
I have updated the level editor... you can now add your own maps. Simply make it in the tilemapeditor, press 7, and it will give you the whole map in defdata's via print and exit. Simply copy all that over to mario and run it!