#CRLF and #CRLF$ ?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

#CRLF and #CRLF$ ?

Post 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?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: #CRLF and #CRLF$ ?

Post 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$? :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Post by Dummy »

#CR : Integer
#CR$ : String

;)
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Post 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:
Post Reply