Re: Wrapping text
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17360
interpreted = N
texte = Thanks Ken,I will try that tomorrow. Still would be nice if [format] worked withmore than one line of text, or there was a [TextWrap] tag.Got to get to bed before its time to get up. =^)>>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]][ge>tchars>start=[math]start[/math]&end=[math]end[/math]][yourFieldNameHere][/getchars][mat>h]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.netBritt T.--------------------------------------------------------|| Britt@fishingworld.com || Britt@easttexas.com ||--------------------------------------------------------|| World Masters - || P.O. Box 1989 |||| Graphic Designs, || Lindale, TX 75771 |||| Web Site Development, || Phone: (903) 882-8877 |||| Web Site Hosting. || Fax: (903) 882-3110 ||--------------------------------------------------------
Associated Messages, from the most recent to the oldest:
Thanks Ken,I will try that tomorrow. Still would be nice if
[format] worked withmore than one line of text, or there was a [TextWrap] tag.Got to get to bed before its time to get up. =^)>>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]][ge>tchars>start=
[math]start[/math]&end=
[math]end[/math]][yourFieldNameHere][/getchars][mat>h]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.netBritt T.--------------------------------------------------------|| Britt@fishingworld.com || Britt@easttexas.com ||--------------------------------------------------------|| World Masters - || P.O. Box 1989 |||| Graphic Designs, || Lindale, TX 75771 |||| Web Site Development, || Phone: (903) 882-8877 |||| Web Site Hosting. || Fax: (903) 882-3110 ||--------------------------------------------------------
Britt T.
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:
admin login weirdness (2000)
[TaxableTotal] - not working with AOL and IE (1997)
[BULK] [WebDNA] Candidate versions release (2010)
Running 2 two WebCatalog.acgi's (1996)
errormessages.db (1997)
[PROTECT] Problem (2003)
Help! WebCat2 bug (1997)
Not really WebCat- (1997)
Only charge card when product shipped ? (1997)
Character limit in [Search]? (1998)
Emailer (WebCat2) (1997)
WebSTAR, OSX, WebDNA permissions problem ... (2005)
StandardConversions.db (1998)
converting characters in form (1997)
Help Please WebDNA 6 Secure Forms Problem (2004)
Intermitent problem using [referrer] (1997)
Email problem (1998)
WCS Newbie question (1997)
Speed/performance issues using .hdr (1997)
Location of Webcat site in folder hierarchy (1997)