C cnicolapc Active Member Licensed User Longtime User Aug 31, 2011 #1 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
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 Aug 31, 2011 #2 Code: Copy Dim s As String s="a b c d e" s=s.Replace(" ","") Msgbox (s,"Blanks removed") Upvote 0
C cnicolapc Active Member Licensed User Longtime User Aug 31, 2011 #3 hi, Thank You very much Nicola Upvote 0
nfordbscndrd Well-Known Member Licensed User Longtime User Aug 31, 2011 #4 cnicolapc said: 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". Click to expand... For "Replace" and other string functions, see this page in the Documentation Wiki. If you are an old VB6 programmer, you might also want to see this VB6 to B4A chart which has the same info. It's also in the Beginner's Guide under "String Manipulation". Upvote 0
cnicolapc said: 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". Click to expand... For "Replace" and other string functions, see this page in the Documentation Wiki. If you are an old VB6 programmer, you might also want to see this VB6 to B4A chart which has the same info. It's also in the Beginner's Guide under "String Manipulation".