[Gambas-user] TextArea automatic CRLF

mikeB mb at code-it.com
Wed Nov 22 09:19:46 CET 2017

That (your -Rolf- example) is EXACTLY what I needed; therefore,
this "problem" has been solved in short order ;-)

Thank you so much for your reply and guidance.
have a GREAT day,

On 11/22/2017 12:35 AM, Rolf-Werner Eilert wrote:
> Am 21.11.2017 18:55, schrieb mikeB:
>> eGreetings to the World of Gambas,
>> Am in the process of developing a 'newsletter email sender'
>> using the SMTP component - with a TextArea field as the
>> message editor. Going to be used to send out a 'what's new'
>> opted-in mailing list to my clients.
>> I realize there are lots of this type software on the iNet
>> (i.e. Mail Monkey) but I don't like the fact that my mailing
>> list would be stored on "the cloud" - a security thing.
>> What I am trying to do is code it so that if a line is say
>> 80 chars long then it automatically inserts a carriage return/
>> next line function (i.e. chr(13) & chr(10) ? ) so that "what
>> you see is what you get" instead on the line just going on
>> forever - making the email message look tacky...
>> I've been playing around with the "change" "wrap" and "line"
>> functions but can't seem to find a way to do this OTHER THEN
>> actually pressing the 'ENTER' key at the end of each line
>> (which seems to work - via my testing).
>> I'm missing something - most likely simple - but if anyone knows
>> and has a few minutes to advise me what to look at - I'd GREATLY
>> APPRECIATE your mentor-ship ;-)
>> Have a GREAT day,
>> mikeB
> Moin,
> First advice: Use String.Len() (not Len) to measure the length of strings.
> Second: In Linux, it is LF only, and as far as I understand, Windows 
> seems to at least accept this too, meanwhile.
> Then I send you a project of mine. It is a tool our students use to 
> learn typewriting. There is a TextArea, and you can see how I managed to 
> make it behave like a typewriter. Take a look at TextArea_KeyPress
> This is not precisely what you are looking for, but maybe it can inspire 
> your code.
> Regards
> Rolf
> --------------------------------------------------
> This is the Gambas Mailing List
> https://lists.gambas-basic.org/listinfo/user
> Hosted by https://www.hostsharing.net

More information about the User mailing list