**DONOTDELETE**
(Lurker)
2000-01-07 03:40 AM
CHR(10 or 13) in Notepad

When I use the CHR(10) or the CHR(10) to write some lines to a txt file to then open it in Notepad I get strange characters in place of a carriage return. Does anybody know why? Or does anybody have a solution?


PaulMoxey
(Getting the hang of it)
2000-01-07 05:16 AM
Re: CHR(10 or 13) in Notepad

I get exactl ythe same thjing, yet it doesn;'t seem to be consistent.
Some lines have it, yet others don't.
It's got me confused, but I've just been manually deleting the garbage as I currently edit the file manually anyway after its produced.

------------------
Paul Moxey
POS & Senior Network Administrator
Taubmans Pty Ltd
Paul_Moxey@taubmans.com.au


Flavien
(Getting the hang of it)
2000-01-07 07:06 AM
Re: CHR(10 or 13) in Notepad

Try with Chr(10)+Chr(13). For example:
WriteLine(1,"This is a sample text"+Chr(10)+Chr(13))
WriteLine(1,"This is a second line of text"+Chr(10)+Chr(13))

Regards,
Flavien