Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Trim command in 5 lines

Author
Message
ConorH
21
Years of Service
User Offline
Joined: 5th Feb 2003
Location:
Posted: 18th Nov 2005 17:49
I found this command in a function library but have since misplaced it. However I managed to knock one up for myself fairly quickly. (The last one I saw was verging on 50 lines)

its my new rat tail dog!
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 19th Nov 2005 16:12 Edited at: 19th Nov 2005 16:12
That works for single words, but wouldn't work for names. For example, " Joe Bloggs " would become "JoeBloggs"

Jan Vibe
19
Years of Service
User Offline
Joined: 14th Nov 2005
Location:
Posted: 22nd Nov 2005 10:37
Here is one that does the job in 4 lines, and it does not remove spaces inside the text.



The last word in this sentence is wrong

Login to post a reply

Server time is: 2024-11-23 10:29:43
Your offset time is: 2024-11-23 10:29:43