Replacing " in a string

Results 1 to 5 of 5

Thread: Replacing " in a string

  1. #1
    Clarke Allen Guest

    Default Replacing " in a string

    Hi I have a string that includes the " character. I need to replace this with another character (Similar to replacing the space character with %20) I have tried the following;<BR><BR>Replace(Track_Name,""","&#039&#0 39") but it does not work...<BR><BR>Help greatly appreciated

  2. #2
    Kasper Guest

    Default RE: Replacing

    Try using the ascii value <BR><BR>Instead of """ use chr(x) where x is the ascii value for " (which I don&#039t know by heart)<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: Replacing

    Hi Kasper,<BR>its chr(34).<BR>l8r<BR>SteveF

  4. #4
    Clarke Guest

    Default RE: Replacing

    Thanks for your help!<BR><BR>Clarke

  5. #5
    Skippie Guest

    Default RE: Replacing

    To get a quick list of the ASCII values, I usually do this:<BR><BR>&#060;%<BR>For i = 32 To 126<BR>Response.Write("&#060;P&#062;" & i & " = " & Chr(i))<BR>Next<BR>%&#062;<BR><BR><BR>Also, you should memorize the following:<BR><BR>Tab = Chr(9)<BR>Carriage Return = Chr(13)<BR>Line Feed = Chr(10)<BR>Space = Chr(32)<BR><BR><BR><BR>-- Skippie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts