Page 1 of 1

#CRLF and #CRLF$ ?

Posted: Tue Mar 21, 2006 7:21 am
by USCode
I see there are #CR and #CR$ constants and I'm assuming they're BOTH carriage-returns ... but there's only a #CRLF$ carriage-return-linefeed constant ... shouldn't there also be a corresponding #CRLF ?
Should the #CR$ and #CRLF$ be removed for PB4? Are they antiquated?

Re: #CRLF and #CRLF$ ?

Posted: Tue Mar 21, 2006 8:11 am
by PB
> Should the #CR$ and #CRLF$ be removed for PB4?

What? :shock: You requested them yourself. :lol: See bottom of:

http://www.purebasic.fr/english/viewtop ... 9&start=15

Anyway, no -- they should stay. They were requested by others in the past,
at the start of the link above. I use them every day, as do others. And why
would we want to type Chr(13)+Chr(10) instead of just #CRLF$? :)

Posted: Tue Mar 21, 2006 3:03 pm
by Dummy
#CR : Integer
#CR$ : String

;)

Posted: Tue Mar 21, 2006 6:49 pm
by USCode
Dummy wrote:#CR : Integer
#CR$ : String

;)
Ah! Gotcha! One returns a string, the other returns an integer. That makes sense.
I'm actually coming back to PB after having been gone for a LONG time and these details escaped me ... along with old age! :shock:
I hereby withdraw this request! :wink: