Re: Wrapping text

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17358
interpreted = N
texte = >I think [GetChars] would not work really as I need. So, I would like to >suggest a [WrapText 80s][/WrapText] or something along those lines be >considered for a future release.Try this, it will probably work, but it will break the lines at exactly 74 characters, which may be in the middle of words:[math]start=1[/math][math]end=74[/math][loop start=1&end=[format 0f][math]([countChars][yourFieldNameHere][/countchars]/74)+1[/math][/format]][getchars start=[math]start[/math]&end=[math]end[/math]][yourFieldNameHere][/getchars][math]start=start+end[/math][math]end=end+end[/math] [/loop]Don't change the formatting or you'll end up with extra blank lines ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Wrapping text (Kenneth Grome 1998)
  2. Re: Wrapping text (Peter Ostry 1998)
  3. Re: Wrapping text (Britt T. 1998)
  4. Re: Wrapping text (Jim V 1998)
  5. Re: Wrapping text (Peter Ostry 1998)
  6. Re: Wrapping text (Kenneth Grome 1998)
  7. Re: Wrapping text (Britt T. 1998)
  8. Re: Wrapping text (Christer Olsson 1998)
  9. Re: Wrapping text (PCS Technical Support 1998)
  10. Re: Wrapping text (Britt T. 1998)
  11. Re: Wrapping text (Kenneth Grome 1998)
  12. Re: Wrapping text (Britt T. 1998)
  13. Re: Wrapping text (PCS Technical Support 1998)
  14. Wrapping text (Britt T. 1998)
>I think [getchars] would not work really as I need. So, I would like to >suggest a [WrapText 80s][/WrapText] or something along those lines be >considered for a future release.Try this, it will probably work, but it will break the lines at exactly 74 characters, which may be in the middle of words:[math]start=1[/math][math]end=74[/math][loop start=1&end=[format 0f][math]([countchars][yourFieldNameHere][/countchars]/74)+1[/math][/format]][getchars start=[math]start[/math]&end=[math]end[/math]][yourFieldNameHere][/getchars][math]start=start+end[/math][math]end=end+end[/math] [/loop]Don't change the formatting or you'll end up with extra blank lines ... :)Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

search form problem.. (1997) WC2.0 Memory Requirements (1997) Caching [include] files ... (1997) Server slowing down. (1997) HTML email (2004) [LOOKUP] (1997) Hosting Services (1999) PCS search results page (1998) Navigator Parsing (1997) Cookie Newbie (2002) Shed some light on web delivery? (2000) Search returns all, not 20 (1997) WebDNA 5.1 & public CMS (2003) Why does this not work? (2002) [OT] What log analyzer do you use? (2000) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) catagories (1997) Shipcost lookup? (1997) [WebDNA] New request for websites that currently run WebDNA (2009) Associative lookup style? + bit more (1997)