CodeItBetter Programming Another VB Programming Blog

How to remove all spaces from string

Posted on January 4, 2009
1
2
3
4
5
'String Manipulation - How to remove all spaces from string
Dim strTest As String
strTest = " 1 1 1 1 1 0 1 1 0 1 1 1 1 0 0 0"
strTest = Replace(strTest, " ", "")
Debug.Print strTest 'will display 1111101101111000
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.