Force wrap long word in field

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
bbhank
Posts: 116
Joined: Thu Mar 17, 2016 6:04 pm

Force wrap long word in field

Post by bbhank » Thu Mar 31, 2016 9:01 am

I have field that is populated with a URL from a MySQL database. A URL, of course, is one string with no spaces, in this case can be wider than the field containing it. That is the problem. The URL needs to be forced to wrap according to the width of the field, not truncate. I have looked for ways to force this string to wrap without success.


:?

bbhank
Posts: 116
Joined: Thu Mar 17, 2016 6:04 pm

Re: Force wrap long word in field

Post by bbhank » Thu Mar 31, 2016 4:25 pm

Found it. If anybody's interested, it's here:
http://lessons.livecode.com/m/2592/l/12 ... -wrap-text.
It didn't work for me until this line was commented out:
put wordWrapped(myText,the length of line 1 of me) after me
:D

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”