Android Question What is $"$ good for?

KMatle

Expert
Licensed User
Longtime User
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?
 
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
Back
Top