Remove Line feeds
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
Remove Line feeds
How can I remove line feeds from text?
I've tried cText = StrTran( cText, CRLF, CHR(13) )
Also tried cText = StrTRan( cText, CHR(10), "" )
but when I put the text in an Ascii checker (http://www.asciivalue.com/) it shill shows CHR 10
I've tried writing the file with MemoWrit() and FCreate()/Fwrite()
I'm stumped
I've tried cText = StrTran( cText, CRLF, CHR(13) )
Also tried cText = StrTRan( cText, CHR(10), "" )
but when I put the text in an Ascii checker (http://www.asciivalue.com/) it shill shows CHR 10
I've tried writing the file with MemoWrit() and FCreate()/Fwrite()
I'm stumped
Thanks,
Jeff Barnes
(FWH 12.01, xHarbour 1.2.1, Bcc582)
Jeff Barnes
(FWH 12.01, xHarbour 1.2.1, Bcc582)
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
Re: Remove Line feeds
Forgot to mention, I need just a CR at the end of each line.
Thanks,
Jeff Barnes
(FWH 12.01, xHarbour 1.2.1, Bcc582)
Jeff Barnes
(FWH 12.01, xHarbour 1.2.1, Bcc582)
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Remove Line feeds
Can you send me the text file to test here?
EMG
EMG
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
Re: Remove Line feeds
Thanks,
Jeff Barnes
(FWH 12.01, xHarbour 1.2.1, Bcc582)
Jeff Barnes
(FWH 12.01, xHarbour 1.2.1, Bcc582)
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Remove Line feeds
I can't see any CRLF or LF in that file.
EMG
EMG
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
Re: Remove Line feeds
What are you checking it with?
When I paste the text into http://www.asciivalue.com/ it shows both chr(13) and chr(10)
When I paste the text into http://www.asciivalue.com/ it shows both chr(13) and chr(10)
Thanks,
Jeff Barnes
(FWH 12.01, xHarbour 1.2.1, Bcc582)
Jeff Barnes
(FWH 12.01, xHarbour 1.2.1, Bcc582)
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Remove Line feeds
Can you send me the txt file, please?
EMG
EMG
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Remove Line feeds
There is only one CR at the end of each line, no LFs. Please let me know where did you find a LF (at which offset) exactly.
EMG
EMG
- Jeff Barnes
- Posts: 912
- Joined: Sun Oct 09, 2005 1:05 pm
- Location: Ontario, Canada
- Contact:
Re: Remove Line feeds
I think the issue is when I am looking at the file in notepad, ultraedit etc...
I ran some quick code to show me the values of each char and it only shows the CHR(13) at the end of the line and no CHR(10) so I think I'm good.
Thanks for looking into this with me.
I ran some quick code to show me the values of each char and it only shows the CHR(13) at the end of the line and no CHR(10) so I think I'm good.
Thanks for looking into this with me.
Thanks,
Jeff Barnes
(FWH 12.01, xHarbour 1.2.1, Bcc582)
Jeff Barnes
(FWH 12.01, xHarbour 1.2.1, Bcc582)