dcmultiline wordwrap
Posted: Thu Feb 10, 2011 1:18 pm
I use DCMULTILINE to enter text for email messages.
The code is as follows:
@ 9,0 DCMULTILINE cText SIZE 90,10 FONT '10.Courier' OBJECT oCtext NOHORIZSCROLL
This code does automatic word wrap on the screen.
The problem I have is that if the user simply keeps typing and lets the wordwrap do its job the resulting email that goes out is one long line of text. It is not completely visible on an email reader box such as AOl or Gmail.
If the user does press the return key at the end of every line the resulting email is fine.
How do I insert a Chr(13)+Chr(10) at the end of every line so that the resulting email message fits into a standard email reader box
I wrap the final cText varaiable with the HTML command <pre> just before I send it.
cText:='<pre>'+cText+'</pre>'
This allows me to send canned messages that may contain some html references and formatting.
Does anyone have an email message screen that doesn't have these issues.
Bob Volz
Meadowland Systems
The code is as follows:
@ 9,0 DCMULTILINE cText SIZE 90,10 FONT '10.Courier' OBJECT oCtext NOHORIZSCROLL
This code does automatic word wrap on the screen.
The problem I have is that if the user simply keeps typing and lets the wordwrap do its job the resulting email that goes out is one long line of text. It is not completely visible on an email reader box such as AOl or Gmail.
If the user does press the return key at the end of every line the resulting email is fine.
How do I insert a Chr(13)+Chr(10) at the end of every line so that the resulting email message fits into a standard email reader box
I wrap the final cText varaiable with the HTML command <pre> just before I send it.
cText:='<pre>'+cText+'</pre>'
This allows me to send canned messages that may contain some html references and formatting.
Does anyone have an email message screen that doesn't have these issues.
Bob Volz
Meadowland Systems