I think 5 function calls or 5 assigments is not the best code style. Consider these variants:
SQL.Add('SELECT EntCity, EntStageName' + sLineBreak
+ 'FROM Entertainers' + sLineBreak
+ 'WHERE 1=1' + sLineBreak
+ 'AND TEST=''TEST''' + sLineBreak
+ 'ORDER BY EntCity ASC, EntStageName ASC');
CommandText := 'SELECT EntCity, EntStageName' + sLineBreak
+ 'FROM Entertainers' + sLineBreak
+ 'WHERE 1=1' + sLineBreak
+ 'AND TEST=''TEST''' + sLineBreak
+ 'ORDER BY EntCity ASC, EntStageName ASC';
Optionally replace line breaks with spaces:
SQL.Add('SELECT EntCity, EntStageName '
+ 'FROM Entertainers '
+ 'WHERE 1=1 '
+ 'AND TEST=''TEST'' '
+ 'ORDER BY EntCity ASC, EntStageName ASC');