2
Sometimes we need to insert long text strings, especially if we have to hard code XML, Json or other technical structures in our code.
It would be helpful to keep the code readable if text literal could support multiline content.
For instance, instead of typing this:
myVar := 'line1'
+ 'line2'
+ 'line3';
We could type this :
myVar := 'line1
line2
line3';
Note : in this example, the result would not be exactly the same as the multiline example new line characters and spaces are supposed to be preserved.
As an inspiration for this, we could compare it with what Javascript offers: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#multi-line_strings
STATUS DETAILS
New
Business Central Team (administrator)