HTML :td
Bruce Easton
bruce at stn.com
Thu Aug 21 12:12:09 PDT 2008
Enrique Arredondo wrote Thursday, August 21, 2008 2:24 PM:
>
> How can I specify with :td to wrap every 20 characters ?
>
> html id :td :wi "20" :zz "WRAP" ?
>
> thanks
>
Enrique, there's probably some way to do that with :td, but
since I use :tx for most html output, I'll give an example:
(let's assume that st is the source string to be broken up)
Then: html id :tx "<td width=20>"; br=""
iloop If: ii lt len(st)
Then: html id :tx ""{br&mid(st,(ii+"1"),"20"); br="<BR>";
ii(3,.0)=ii+"20"; goto iloop
If:
Then: html id :tx "</td>"
or if you wanted the entire "<td>" to be all on one line, -
actually, this probably answers your original question:
Then: br=""; ab=""
iloop If: ii lt len(st)
Then: ab=ab{br&mid(st,(ii+"1"),"20"); br="<BR>"; ii(3,.0)=ii+"20"; goto
iloop
If:
Then: html id :td :wi "20" :zz ab
Bruce
Bruce Easton
STN, Inc.
More information about the Filepro-list
mailing list