I am new to Delphi programming. I want to create a simple string variable where it contains a new line inside of it, like this:
S := 'MAR 11, 2021 4:38 AM
Ciao';
This is the short program.
program StrTest;
uses
Classes, SysUtils;
var
S : String;
begin
S := 'MAR 11, 2021 4:38 AM
Ciao';
writeln(S);
Readln;
end.
But I get this error message:
String exceeds line
Even if I try to maximize the capacity of the string variable. It looks as though it can't take a new line inside of it, but I need at least one for my test.