House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Removing spaces from a string?

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hello
Ryan Mitchell
06/28/03 03:01 P
trim()
cf-talk
06/28/03 03:03 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ryan Mitchell
06/28/2003 03:01 PM

Hello How do you remove spaces from a string? Ryan

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
cf-talk
06/28/2003 03:03 PM

trim() Uwe RM> Hello RM> How do you remove spaces from a string? RM> Ryan RM>

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
raedwards
06/28/2003 03:07 PM

Trim will only remove leading and trailing spaces. If you want to remove all spaces, Replace(StringVar, " ", "", all) Rob At 08:59 PM 6/28/2003 +0200, cf-talk@sdsolutions.de wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Joel Polsky
01/25/2009 06:00 PM

----- Excess quoted text cut - see Original Post for more ----- This is correct: (and a little old to reply, but wanted to have it correct for future people who read this.. Replace(StringVar, " ", "", "all") Need quotes around ALL

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Adrian Lynch
01/26/2009 10:28 AM

Trim() removes all white space, front and back. So you'll need to do many replaces or use REReplace to get at the tabs, carriage returns and linefeeds too. Adrian ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

October 31, 2014

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference