akuczkowski
11 years agoContributor
Can you wrap a string to multiple lines without needing to explicitly combine the lines?
Question,
I want to be able to format a long string on multiple lines for readabilty and other reasons, is there a way to do something like this without have to close each line and explicitly concatenate the string?
Query := 'Select
ColumA,
ColumB,
ColumC,
From
Table
Where
ColumA = ''Something''
Order By
ColumC Asc';
I don't want to have to do
Query := 'Select ' +
'ColumA, ' +
'ColumB, ' +
'ColumC, ' +
etc.
We are using DelphiScript.
Thanks,
Adam
I want to be able to format a long string on multiple lines for readabilty and other reasons, is there a way to do something like this without have to close each line and explicitly concatenate the string?
Query := 'Select
ColumA,
ColumB,
ColumC,
From
Table
Where
ColumA = ''Something''
Order By
ColumC Asc';
I don't want to have to do
Query := 'Select ' +
'ColumA, ' +
'ColumB, ' +
'ColumC, ' +
etc.
We are using DelphiScript.
Thanks,
Adam