Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CHR(13) not causing line break in StrToFile() output
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01239118
Message ID:
01247258
Views:
22
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform