Ask a Question related to ASP, Design and Development.
-
J. Muenchbourg #1
Replacing quotation marks
The following removes any unwanted apostrophes before being inserted
into an sql database:
Articletext = replace(articleText,"'","''")
..but if I need to remove all quotation marks, this doesnt work:
Articletext = replace(articleText,""","''")
????
Muench
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
J. Muenchbourg Guest
-
Garamond Premier Pro: quotation marks?
A question about Garamond Premier Pro, the font package that now ships with anything bearing the Adobe brandname. I'm trying to use it, for the... -
anybody getting quotation marks
so every time i attempt to install flash 8, it prompts me if i want to run activeX controls, i click yes, i see the green/red/blue square for a... -
CFSET and Quotation Marks
I have a page that generates an html attachment and sends it in email to an admin. The page is an asp page. my problem is that the asp page code... -
Tyogrpaher's Quotation Marks?
Is there a way to get typographer's or "smart" quotes to display in Fireworks? I've yet to find how to do this. I'm running OSX and FireWorks MX.... -
Quotation marks
How can I make correct quotation marks insted of inches? -
John Beschler #2
Replacing quotation marks
"" = empty string
""" = empty string + extra "
To place a " into a string use "".
Your code would then be:
Articletext = replace(articleText,"""","''")
or alternately:
Articletext = replace(articleText,CHR(34),"''")
HTH,
John
being inserted>-----Original Message-----
>The following removes any unwanted apostrophes beforedoesnt work:>into an sql database:
>
>Articletext = replace(articleText,"'","''")
>
>..but if I need to remove all quotation marks, this***>
>Articletext = replace(articleText,""","''")
>
>
>????
>Muench
>
>*** Sent via Developersdex [url]http://www.developersdex.com[/url]>Don't just participate in USENET...get rewarded for it!
>.
>John Beschler Guest
-
Alan #3
Re: Replacing quotation marks
You need to double-up apostrophes to stop them interfering with the
delimiters needed around textual column contents - why do you need to
double-up quotes?
Alan
"J. Muenchbourg" <jodaddy@canada.com> wrote in message
news:#w4TLrnZDHA.2520@TK2MSFTNGP09.phx.gbl...> The following removes any unwanted apostrophes before being inserted
> into an sql database:
>
> Articletext = replace(articleText,"'","''")
>
> .but if I need to remove all quotation marks, this doesnt work:
>
> Articletext = replace(articleText,""","''")
>
>
> ????
> Muench
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!
Alan Guest
-
action bolt webforumsuser@macromedia.com #4
Replacing quotation marks
I have been given this string that contains a quotation mark
myString = "the length is 24" long"
how can i replace the " after 24 with the word inches.
i used this to remove any commas from a string
repeat while (thestring contains ",")
thePos = offset(",",theString)
put " "into theString.char[thePos]
end repeat
it doesnt work for a quotation
thanks
action bolt webforumsuser@macromedia.com Guest
-
Andrew Morton #5
Re: Replacing quotation marks
-- Welcome to Director --
s="abc""e&"def"
put s
-- "abc"def"
put offset(quote, s)
-- 4
put "inches" into char 4 of s
put s
-- "abcinchesdef"
Andrew
Andrew Morton Guest
-
Gretchen webforumsuser@macromedia.com #6
Re:Replacing quotation marks
<<I have been given this string that contains a quotation mark
myString = "the length is 24" long"
how can i replace the " after 24 with the word inches.
i used this to remove any commas from a string
repeat while (thestring contains ",")
thePos = offset(",",theString)
put " "into theString.char[thePos]
end repeat
it doesnt work for a quotation
thanks>>
It should work if you sub the key word QUOTE (no quotes around it)
repeat while (thestring contains QUOTE)
Gretchen Macdowall
updateStage, inc.
Gretchen webforumsuser@macromedia.com Guest
-
Andrew Morton #7
Re: Replacing quotation marks
--
P.S. "The length is 24" long" is poor English. It should be "the length is 24""
or "it is 24" long".
Andrew
Andrew Morton Guest



Reply With Quote

