B4J Question Commas in SmartStrings [Solved]

GuyBooth

Active Member
Licensed User
Longtime User
I just used a smartstring with this structure:
B4X:
                var = "1234"
                Log($"Result: $4.0{var}"$)
I guess I was surprised when the result showed up with a comma in it:
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)
which seems way more complex than it should be.
 

Cableguy

Expert
Licensed User
Longtime User
is the var defined as a STRING?
 
Upvote 0
Top