String Word Wrap

Results 1 to 2 of 2

Thread: String Word Wrap

  1. #1
    Join Date
    Dec 1969

    Default String Word Wrap

    I am displaying a string of text within a table. Sometimes the string when displayed is longer than the specified width of the table and/or it contains hard return(s). I need to implement some type of word wrap on the string that will wrap to the next line whenever the table width is reached or a hard return is encountered. Any suggestions?

  2. #2
    Join Date
    Dec 1969

    Default Set a cell width, and use the replace() function

    If you set a cell width, be it relative or not, the text will wrap, and to replace return characaters in the text with a <BR> tag (Which is what you need to do) use this command.<BR><BR>response.write(replace(outstr,vbcr lf,"<BR>"))<BR><BR>-- Whol

Posting Permissions

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