VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This function makes sure you have only one space in between words, instead of multiple spaces in a

by Anthony Loera (7 Submissions)
Category: String Manipulation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 21st August 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This function makes sure you have only one space in between words, instead of multiple spaces in a string. I also have a ton of organized free

Rate This function makes sure you have only one space in between words, instead of multiple spaces in a




    Dim strA As String
    Dim i As Integer
    
    strA = str
    
    For i = 20 To 2 Step -1
    strA = Replace(strA, Space(i), Space(1))
    Next i
    
    KillSpaces = strA

End Function

Download this snippet    Add to My Saved Code

This function makes sure you have only one space in between words, instead of multiple spaces in a Comments

No comments have been posted about This function makes sure you have only one space in between words, instead of multiple spaces in a . Why not be the first to post a comment about This function makes sure you have only one space in between words, instead of multiple spaces in a .

Post your comment

Subject:
Message:
0/1000 characters