Formatting is lost

Results 1 to 2 of 2

Thread: Formatting is lost

  1. #1
    Rob Price Guest

    Default Formatting is lost

    Does anyone have trouble with formatting text from an access database?<BR>My data is all formatted in a neat and uniform way in the database(paragraphs and so fourth)<BR>When i display it on a site it is just one huge string of text, no line breaks or paragraphs.<BR><BR>Please if you have an answer why this does what it does could you contact me?<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Formatting is lost

    Format HTML<BR>&#060;%<BR>&#039;first create a function to replace the chr 10 & 13 with linebreaks<BR>Function FormatStr(String)<BR> on Error resume next<BR> String = Replace(String, CHR(13), "")<BR> String = Replace(String, CHR(10) & CHR(10), "&ltP&gt")<BR> String = Replace(String, CHR(10), "&ltBR&gt")<BR> FormatStr = String<BR>End Function<BR>%&#062;<BR>Then call it like this:<BR>&#060;%=formatStr(rs.Fields("memo_field") )%&#062;<BR><BR><BR>Hope this helps... Cheers!

Posting Permissions

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