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

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

correct syntax for replace double quotes

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Probably not. I'd try this
Michael Dorr
06/20/02 04:23 P
Beware those spaces, use:
Jamie Jackson
06/20/02 04:28 P
You need to escape the first "
Douglas Brown
06/20/02 04:30 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Charlie
06/20/2002 01:29 PM

#Replace(myQuery.data, " " ", "", "All"     )# Is this the correct syntax for removing double quotes??

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Michael Dorr
06/20/2002 04:23 PM

Probably not.  I'd try this Replace(sText, """", "", "ALL") Your example would probably throw an error because you need to escape double quotes inside a CF Function unless you are using single quotes for your attributes.  Secondly, your example would remove double quotes only when a blank space both preceded and followed it.  You were definitely on the right track however. Mike Michael B. Dorr eLab Web Application Developer Owen @ Vanderbilt University michael.dorr@owen.vanderbilt.edu #Replace(myQuery.data, " " ", "", "All"     )# Is this the correct syntax for removing double quotes??

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jamie Jackson
06/20/2002 04:28 PM

Beware those spaces, use: #Replace(myQuery.myField, '"', '', 'all')# On Thu, 20 Jun 2002 13:26:07 -0400, in cf-talk you wrote: >#Replace(myQuery.data, " " ", "", "All"     )# > > >Is this the correct syntax for removing double quotes??

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Douglas Brown
06/20/2002 04:30 PM

You need to escape the first " #Replace(myQuery.data, " "" ", "", "All"     )# Douglas Brown Email: dbrown@socal.rr.com > #Replace(myQuery.data, " " ", "", "All"     )# > > > Is this the correct syntax for removing double quotes?? >


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

Search cf-talk

November 22, 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             

Designer, Developer and mobile workflow conference