Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CHR(13) not causing line break in StrToFile() output
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01239118
Message ID:
01247258
Vues:
23
>>>The CHR(13) is not breaking the line in my output. Do I also need CHR(10) with it? What is the rule?
>>>
>>>
>>>STRTOFILE(ALLTRIM(STR(iCount)) + ': ' + TRANSFORM(oSeg.elements[iCount]) + CHR(13),"strConvertedData.txt",.T.)
>>>
>>
>>Yes, it never would hurt to add chr(10). The output may be seen differently in different editors, but chr(13) + chr(10) will always work unless it's for e-mail body in ShellExecute.
>
>That is my problem. What do can you use in ShellExecute?
>
>Thanks
>Raymond Larche

I found the answer in a message by Sergei Berezniker
Thread ID: 998431 Message ID: 998438

Just put in :

chr(13)+chr(10)+"%0d%0a"

And it works

Thanks
Raymond Larche
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform