Removing new line from strings
BlitzMax Forums/BlitzMax Programming/Removing new line from strings
| ||
Hello, I was wondering if there was any way to remove "~n" or new line(\n) from strings. I used replace, but it was useless. Can anyone help me? |
| ||
Care to elaborate on "useless"? |
| ||
Replace works, but you have to assign the result. My guess is that you're doing... str.Replace( "~n", "" ) instead of... str = str.Replace( "~n", "" ) |
| ||
Oh yeah, that worked. I feel pretty stupid now :D Thanks for the help guys! |