Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CHR(13) does not work in message
Message
From
22/08/2001 07:38:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
21/08/2001 18:00:43
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00546894
Message ID:
00547146
Views:
9
>This is different from VFP6... isn't it? VFP 6.0 did not require chr(10)
>
>>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.

I think it is not so much the difference between versions of VFP, but rather that in some places, you can use chr(13) alone, in others, you can't. There may be version-specific differences, however. OTOH, I use VFP6 for quite a while now, and precisely here I had to use CR+LF.

You are safe, AFAIK, if you always use CR+LF (that is, chr(13) + chr(10)).
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
Reply
Map
View

Click here to load this message in the networking platform