Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Write string over multiple line in X++

I have a string and I want to write it over multiple line, hover I don't want to write it the below way since it would be tedious

val = " lines 1 "
     + " lines +
     ....

any idea?

like image 614
khaled omar Avatar asked Dec 14 '22 19:12

khaled omar


1 Answers

You can try the following:

str tmp =
@"123
456
789";

Note the text is aligned all the way to the edge of the editor, otherwise those indentations/spaces will be included in the string.

If that not what you looking for, then maybe TextBuffer class will be suitable for your needs.

like image 186
Aliaksandr Maksimau Avatar answered Jan 25 '23 11:01

Aliaksandr Maksimau