Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CHR(13) does not work in message
Message
From
21/08/2001 14:17:12
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
21/08/2001 14:11:42
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00546894
Message ID:
00546898
Views:
26
This message has been marked as a message which has helped to the initial question of the thread.
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform