problems with replace

Discussion in 'ASP General' started by shank, Jul 27, 2004.

  1. shank

    shank Guest

    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),"")
     
    shank, Jul 27, 2004
    #1
    1. Advertisements

  2. shank

    Steven Burn Guest

    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" <> wrote in message
    news:...
    > 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),"")
    >
    >
     
    Steven Burn, Jul 27, 2004
    #2
    1. Advertisements

  3. shank

    shank Guest

    never mind...
    I had to use Replace in the form field value.
    thanks

    "shank" <> wrote in message
    news:...
    > 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),"")
    >
    >
     
    shank, Jul 27, 2004
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian Blais
    Replies:
    1
    Views:
    578
    Bruno Desthuilliers
    Jun 27, 2006
  2. Greg Ewing
    Replies:
    2
    Views:
    535
    Dieter Maurer
    Jun 29, 2006
  3. Alun
    Replies:
    3
    Views:
    5,298
    Masudur
    Feb 18, 2008
  4. Prasad S
    Replies:
    2
    Views:
    403
    Dr John Stockton
    Aug 27, 2004
  5. Replies:
    3
    Views:
    316
    Brian McCauley
    Sep 12, 2005
  6. Wilfred Nilsen
    Replies:
    3
    Views:
    496
    Martin Honnen
    May 1, 2005
  7. mscir
    Replies:
    0
    Views:
    434
    mscir
    Oct 12, 2005
  8. V S Rawat
    Replies:
    5
    Views:
    587
    Richard Cornford
    Jul 3, 2007
Loading...