Results 1 to 5 of 5

Thread: Replace...

  1. #1
    Donnie Guest

    Default Replace...

    Now how would I take a string and replace ALL of the quotation marks that are contained in the string with SINGLE quotation marks?

  2. #2
    Join Date
    Dec 1969

    Default RE: Replace...

    With Replace() function.

  3. #3
    Join Date
    Dec 1969

    Default RE: Replace...

    mystr = replace (mystr, chr(34), chr(39))

  4. #4
    Daniel Guest

    Default Thanks a lot!

    This patch solved my problems. I&#039;m a ASP-no-nothing, but forums like these will make my life possible!<BR><BR>

  5. #5
    Daniel Guest

    Default Thanks a lot! 2

    Hey - you could also make formatting with this bit of script:<BR><BR>mystr = replace (mystr, chr(13), "<BR>")<BR>mystr = replace (mystr, " ", "**")<BR><BR>If somebody enters a textform, the linebreaks will be actual linebreaks, and not just ignored. Same with other formatting for the non-braking-spaces. NOTE: I did it with two spaces instead of one, because else it would just be one huge long line.<BR>

Posting Permissions

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