I'm trying to embed carriage returns in a Delphi long string and then printing it out in the following manner (in a console app):
aString : String;
aString := 'Hello' + Chr(13) + 'World';
But instead of getting the word "Hello" in one line and "World" on another, I get some garbled text all on one line, e.g. "HeWorld". Does writeln not interpret carriage returns within a text? Or is 13 the wrong ASCII value for a carriage return?