Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CHR(13) does not work in message
Message
De
22/08/2001 07:38:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
21/08/2001 18:00:43
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00546894
Message ID:
00547146
Vues:
17
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform