Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
May 21, 2001

Trim Multiple Spaces in a String to a Single Space


If a string has two or more consecutive spaces, this will bring them down to a single space.
 
Private Function TrimToSingleSpace(strToTrim As String) As String
strToTrim = Trim(strToTrim)
Do Until InStr(1, strToTrim, 
Prasad Haridass
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap