Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Chr(13) vs chr(10)
Message
 
À
02/02/2006 15:29:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
01093061
Message ID:
01093096
Vues:
30
well i create almost the same string and send it to zetafax and it recognises the 13+10 correctly but for the email the client has outlook as do i and if i have 13+10 i get 2 chariage returns every time, changing them all to 10 or 13 ives only one carriage return. however the email is sent from outlook but is sent to other clients, outlook, blackberry and more and i don't know how it will look on those. guess i might have to wait for some feed back!

>I think you have some other setting set wrong in your email client, or in your program.
>
>CHR(13) is carriage return without changing line, CHR(10) is line feed without changing horizontal position!
>
>Many programs do not behave correctly, and for those programs it really does not care whether you use one or the other, or both. However, many email readers, and other programs like for instance Internet Explorer, will show "Line1" + CHR(10) + "Line 2" correctly like this:
>Line1
>     Line2
>The correct way to show "Line1" + CHR(13) + "Line2" is two lines on top of each other, but not all programs behaves correctly, which can be a PITA if you really want the correct behavior. "Line1" + CHR(13) + chr(10) + "Line2" will ALWAYS show corectly UNLESS something else is wrong.
>
>>i did use chr(13)+chr(10) as i have to use it for zetafax but in the email it put in an extra carriage return and the layout looks dreadful so i have replaced all the chr(13)+chr(10) with chr(10) but i will change this to chr(13) at marc's suggestion.
>>
>>>The correct way is to use BOTH, CHR(13)+CHR(10)! In some situations you can get big problems if you don't, so get used to it.
>>>
>>>
>>>>hi all,
>>>>i am automatically getting information and placing it into an email with a particular layout. i am using chr(13) in some places and chr(10) in others to start a new line. both seem to work but i am wondering if it is better to use one over the other?
>>>>Slán
>>>>~M
Go raibh maith agat

~M
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform