[Gambas-user] Text-Wrapping

Hans Lehmann hans at gambas-buch.de
Wed Nov 11 13:30:56 CET 2020


Hello,

since there are true string artists among the readers, I just ask: I'm 
looking for a function like LikeWrap(arg1Text, arg2Length) with which 
you can wrap a text. At most arg2Length characters should be in one line.
Line breaks in the original text should be preserved. A hyphenation is 
not used. The text must be separated by a hyphen in the last word. The 
length rule also applies in this case.

Does anybody have a finished function in his source code box?

Result with maxLength = 63:

Hello,

since there are true string artists among the readers, I just
ask: I'm looking for a function like LikeWrap(arg1Text,
arg2Length) with which you can wrap a text. At most arg2Length
characters should be in one line.
Line breaks in the original text should be preserved. A
hyphenation is not used. The text must be separated by a
hyphen in the last word. The length rule also applies in this
case.

With kind regards

Hans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201111/c43345a7/attachment.htm>


More information about the User mailing list