Page 1 of 1 1
Topic Options
#1341 - 2000-01-07 03:40 AM CHR(10 or 13) in Notepad
Anonymous
Unregistered


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?

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

Registered: 1999-07-22
Posts: 90
Loc: Villawood, NSW, Australia
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

_________________________
Paul Moxey POS & Senior Network Administrator BarloworldCoatings (AUST) Pty Ltd

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

Registered: 1999-07-21
Posts: 95
Loc: Geneva, Switzerland
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

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.036 seconds in which 0.016 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org