KMatle Expert Licensed User Longtime User Oct 3, 2016 #1 I'm bit afraid to ask, but... It seems that $"$ is needed to build a string with special chars in it like: Code: Copy Dim m As Map = CreateMap("to": $"${Devtoken}"$) Logging the value shows the raw value without ": Code: Copy Log (m.Get("to")) Same as Code: Copy Dim m As Map = CreateMap("to": Devtoken) I haven't found any documentation about the $"$. So what's the secret?
I'm bit afraid to ask, but... It seems that $"$ is needed to build a string with special chars in it like: Code: Copy Dim m As Map = CreateMap("to": $"${Devtoken}"$) Logging the value shows the raw value without ": Code: Copy Log (m.Get("to")) Same as Code: Copy Dim m As Map = CreateMap("to": Devtoken) I haven't found any documentation about the $"$. So what's the secret?
S sorex Expert Licensed User Longtime User Oct 3, 2016 #2 it's an easier method to add variables without the need to end quote, start quote ("."& var & ".") , not sure what else it does tho as I don't use it. Upvote 0
it's an easier method to add variables without the need to end quote, start quote ("."& var & ".") , not sure what else it does tho as I don't use it.
S susu Well-Known Member Licensed User Longtime User Oct 3, 2016 #3 Read about it here: https://www.b4x.com/android/forum/threads/b4x-smart-string-literal.50135/#content Upvote 0
Read about it here: https://www.b4x.com/android/forum/threads/b4x-smart-string-literal.50135/#content