>I am trying to put a standard message into the message section of of an Email.
>
>If I use the following code
>
>loIP.cMessage = "This is coming from a program I wrote" + CHR(13) +;
> "Send it back to me and let me know it worked."
>
>The message runs to gether on the same line. The CHR(13) does not make the line break. If I store it first into a memo field, the memo field shows the line break, but when I import the contents of the memo field into the message, the line break doesn't work.
>
>If I type the message into the memo field and press the enter key to make the line break and then import the contectns of the memo field into the message, the line breaks as it should in the message.
>
>Obviously there is something else needed besides just chr(13).
>
>Any ideas?????
>
>Thanks
>
>Alan Wyne
>Rollpak Corp
You need carriage return + linefeed, that is, chr(13) + chr(10).
I recommend to use this line in your standard include files:
#DEFINE CRLF chr(13) + chr(10)
Then, in your message, you can place:
... cMessage = "Line 1" + CRLF + "Line 2"
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)