Print Page | Close Window

How to remove white spaces

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=14176
Printed Date: 30 March 2026 at 11:43am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How to remove white spaces
Posted By: philcom2000
Subject: How to remove white spaces
Date Posted: 09 March 2005 at 2:40pm
Hi guys
 
I am looking for away to trim all the white spaces from a string. I know about Ltrim & Rtrim but i need to remove all white spaces. like the example below.
 
Input= Joe Blogs
 
Output= JoeBlogs
 
any help would be great Smile



Replies:
Posted By: bootcom
Date Posted: 09 March 2005 at 2:42pm
Would a simple replace be sufficient. I.E:
 
replace(thestring, " ", "")
 
If thestring was joe blogs It would return joeblogs.
 
Thats the easiest way off the top of my head and it always works for me, or does it have to be teh trim method?


Posted By: philcom2000
Date Posted: 09 March 2005 at 3:01pm
That would work fine, why could i not think of that trying to hard i think LOL Thanks bootcom


Posted By: bootcom
Date Posted: 09 March 2005 at 3:02pm
LOL no probs fella.
 
Happy coding Clap



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net