#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    richmond, va
    Posts
    9
    Rep Power
    0

    Parsing a variable for conversion


    There's probably some simple way to do this but I haven't figured it out yet. I have a text file that gets read in and displayed in an html page. Obviously (as mentioned in an earlier post) all of the returns and such get read as regular whitespace in HTML, so I want to go through and convert all carriage returns to a line break tag. However, Find and FindNoCase for "\n" don't work, is there another escape code I need to be searching for? Or even better, something built in to do this for me?

    Comments on this post

    • Gran Roguismo agrees
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Location
    Colorado
    Posts
    6
    Rep Power
    0
    Try chr(10) or chr(13) with no quotes in your Find.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    richmond, va
    Posts
    9
    Rep Power
    0
    thanks, I actually got a couple other suggestions for that so I'll try it tomorrow. yay for meetings taking up the last hour and a half of your productive time...

IMN logo majestic logo threadwatch logo seochat tools logo