Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > problems with replace

Reply
Thread Tools

problems with replace

 
 
shank
Guest
Posts: n/a
 
      07-27-2004
Shouldn't the below code remove double quotes coming in from
Request("Description") ...?
It's not. Are there other ASCII characters I should be searching for?
The chart I have has Chr(34) as double quotes.
thanks

varDescription = Replace(Request("Description"),Chr(34),"")


 
Reply With Quote
 
 
 
 
Steven Burn
Guest
Posts: n/a
 
      07-27-2004
Just for fun ;o)

strTemp = ReplaceIt("lala " & chr(34) & " hehe", chr(34), vbNullChar)

Function ReplaceIt(sString, sChar, sWith)
ReplaceIt = Replace(sString, sChar, sWith)
End Function

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!


"shank" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Shouldn't the below code remove double quotes coming in from
> Request("Description") ...?
> It's not. Are there other ASCII characters I should be searching for?
> The chart I have has Chr(34) as double quotes.
> thanks
>
> varDescription = Replace(Request("Description"),Chr(34),"")
>
>



 
Reply With Quote
 
 
 
 
shank
Guest
Posts: n/a
 
      07-27-2004
never mind...
I had to use Replace in the form field value.
thanks

"shank" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Shouldn't the below code remove double quotes coming in from
> Request("Description") ...?
> It's not. Are there other ASCII characters I should be searching for?
> The chart I have has Chr(34) as double quotes.
> thanks
>
> varDescription = Replace(Request("Description"),Chr(34),"")
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace /n with a XHTML <br /> using string.replace Alun ASP .Net 3 02-18-2008 05:52 AM
Re: [Pyrex] pyrex functions to replace a method (Re: replace a method Greg Ewing Python 2 06-29-2006 05:25 PM
pyrex functions to replace a method (Re: replace a method in class:how?) Brian Blais Python 1 06-27-2006 12:13 PM
s/$match/$replace/ fails when $replace has backreferences anonyusenet@yahoo.com Perl Misc 3 09-12-2005 11:03 AM
help with string replace - for doing selective replace Prasad S Javascript 2 08-27-2004 03:22 PM



Advertisments