New line in a string
BlitzMax Forums/BlitzMax Beginners Area/New line in a string
| ||
How would you put a new line character into a String. Example: Message:String = "Hello " Message:+"World" Drawtext Message,0,0 Would display:- Hello World But I want it to display:- Hello World I've tried using \n , Chr(13)+Chr(10) , ~n, ~~n but none of those seem to work. |
| ||
You will have to use two calls to DrawText, or write your own function to split the string and work out how many DrawTexts you need, etc. |
| ||
I was starting to think that was the way I'd have to do it. I could use shorter text lines, really, but I didn't want to take the lazy way out. Thanks for your help. |