Single line interpolated strings works perfect:
But Multi-line it does not work:
Thanks, logged as bugs://80251
That should work for " strings yes, but not '. Logged.
Maybe a stupid Question but what is the reason fo the $ in front of stmt?
@FritzW: This makes the string interpolated.
var i: Integer := 5
var s: String := $"The value of i is {i} "; {will interpolate to “The value of i is 5”; {i} will be replaced with the variable.}
var s1: String := "The value of i is {i} " {will just be what is said, {i} is just a part of the string}
Thanks,
there is so much to learn for a old Delphi man…
This function is brand new …
we need to fix the syntax highlighting too, for VS, it seems from the screenshot.
Those go hand in hand though.
bugs://80251 got closed with status fixed.
In version 2293:
Better, but not completely fixed.
The nested interpolated string still don’t work.
I thought I could fix it with a temporary var, but this gives issues also:
Any chance I can get this code as text, inserted of as screenshot, so I can try myself?
this code compiles and works fine, for me:
namespace ConsoleApplication280;
interface
uses
System.Linq;
type
Program = class
public
class method Main(args: array of String): Int32;
end;
implementation
class method Program.Main(args: array of String): Int32;
begin
// add your own code here
writeLn($"The magic happens here.{args}
and here {args}");
end;
end.
On the plus side, this made me find some problems with highlighting for wrapped interpolated strings= in Fire/Water, which is now fixed
I know the feeling!!