I just used a smartstring with this structure:
I guess I was surprised when the result showed up with a comma in it:
I just wanted the numbers (but a minimum of four of them hence the smartstring format). Is there a simple way to exclude the comma from the smartstring? Or will I have to do this:
which seems way more complex than it should be.
B4X:
var = "1234"
Log($"Result: $4.0{var}"$)
B4X:
Result: 1,234
I just wanted the numbers (but a minimum of four of them hence the smartstring format). Is there a simple way to exclude the comma from the smartstring? Or will I have to do this:
B4X:
var = "1234"
var = $"$4.0{var}"$
var = var.Replace(",","")
Log(var)