Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How to remove white spaces
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to remove white spaces

 Post Reply Post Reply
Author
philcom2000 View Drop Down
Groupie
Groupie
Avatar

Joined: 07 February 2002
Location: England
Status: Offline
Points: 193
Post Options Post Options   Thanks (0) Thanks(0)   Quote philcom2000 Quote  Post ReplyReply Direct Link To This Post Topic: How to remove white spaces
    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
Back to Top
bootcom View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 February 2005
Location: United Kingdom
Status: Offline
Points: 259
Post Options Post Options   Thanks (0) Thanks(0)   Quote bootcom Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
philcom2000 View Drop Down
Groupie
Groupie
Avatar

Joined: 07 February 2002
Location: England
Status: Offline
Points: 193
Post Options Post Options   Thanks (0) Thanks(0)   Quote philcom2000 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
bootcom View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 February 2005
Location: United Kingdom
Status: Offline
Points: 259
Post Options Post Options   Thanks (0) Thanks(0)   Quote bootcom Quote  Post ReplyReply Direct Link To This Post Posted: 09 March 2005 at 3:02pm
LOL no probs fella.
 
Happy coding Clap
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.