[Gambas-user] Text-Wrapping

Brian G brian at westwoodsvcs.com
Wed Nov 11 16:00:02 CET 2020

Bruce do you need to use the wrapped buffer in a gui editor and then reassemble the original with changes? 

Thank You 
Brian G 

From: "Gianluigi" <bagonergi at gmail.com> 
To: "Gambas mailing list" <user at lists.gambas-basic.org> 
Sent: Wednesday, November 11, 2020 6:19:43 AM 
Subject: Re: [Gambas-user] Text-Wrapping 

Il giorno mer 11 nov 2020 alle ore 13:31 Hans Lehmann < [ mailto:hans at gambas-buch.de | hans at gambas-buch.de ] > ha scritto: 


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: 

Hi Hans, 

I hope that Benoit does not notice that I reply to you before he does, but I had some problems and as soon as I sent this email I reply to him and I will apologize. 

I am attaching a zip file to avoid problems with g-mail. 

Have a good day 

----[ http://gambaswiki.org/wiki/doc/netiquette ]---- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201111/705b0442/attachment.htm>

More information about the User mailing list