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:

B4X:
 Dim m As Map = CreateMap("to": $"${Devtoken}"$)

Logging the value shows the raw value without ":

B4X:
Log (m.Get("to"))

Same as

B4X:
Dim m As Map = CreateMap("to": Devtoken)

I haven't found any documentation about the $"$. So what's the secret?
 

sorex

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