Log($"The time is: ${DateTime.Time(DateTime.now)}"$) 'correct one'
'following two incorrect lines don't cause any error or warning:
Log("The time is: ${DateTime.Time(DateTime.now)}"$) 'missing the starting $
Log($"The time is: ${DateTime.Time(DateTime.now)}") 'missing the ending $
The problem is that the variables wouldn't be replaced with the value they contain. For example
B4X:
Log("The time is: ${DateTime.Time(DateTime.now)}"$)
'The above line outputs: "The time is: ${DateTime.Time(DateTime.now)
'while "The time is: 12:34:56", or similar, is expected.