Long URL in a field

J. Landman Gay jacque at hyperactivesw.com
Sun Jun 13 23:15:37 EDT 2010


J. Landman Gay wrote:

> If you need real, hard-coded carriage returns or you can't set the 
> tabstops to 1, this handler works on longer URLs that need to wrap over 
> more than 2 lines.

Well, I gave you an old handler for that -- and I just found a note to 
myself that it was deprecated. Here's a better way to add hard carriage 
returns, it's all built-in:

on wrapField pFld
   replace slash with slash&space in fld pFld
   put the formattedText of fld pFld into fld pFld
   replace space with empty in fld pFld
end wrapField

I should have double-checked before writing.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list