Spaces in string

cnicolapc

Active Member
Licensed User
Longtime User
hi,
what function can I use to remove all spaces in a string and not only the initial and final?
example: "1 2 3 4 567 8" I would like him to be "12345678".
Thanks in advance
Nicola
 

Djembefola

Active Member
Licensed User
Longtime User
B4X:
 Dim s As String
   s="a b c d e"
   s=s.Replace(" ","")
   Msgbox (s,"Blanks removed")
 
Upvote 0

nfordbscndrd

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top