Page 1 of 1

#CRLF$ without the $

Posted: Sun Jan 06, 2008 4:36 am
by Mistrel
We have #CR and #LF. Can we please have a native #CRLF?

Re: #CRLF$ without the $

Posted: Sun Jan 06, 2008 9:52 am
by Kiffi
Mistrel wrote:We have #CR and #LF. Can we please have a native #CRLF?
#CR => 13
#LF => 10
#CRLF => ???

1310? 23?

Greetings ... Kiffi

Re: #CRLF$ without the $

Posted: Sun Jan 06, 2008 10:06 am
by DarkDragon
Kiffi wrote:
Mistrel wrote:We have #CR and #LF. Can we please have a native #CRLF?
#CR => 13
#LF => 10
#CRLF => ???

1310? 23?

Greetings ... Kiffi
#CRLF = #LF << 8 | #CR, isn't it?

Code: Select all

#CRLF = #LF << 8 | #CR
a.s = #CRLF$
Debug PeekW(@a)
Debug #CRLF
; Try if Chr() works with such constructs which could be misunderstood as unicode characters.
If Chr(#CRLF) = Chr(#CR) + Chr(#LF)
  Debug "Works."
Else
  Debug "Works definately not."
EndIf
But it's true: I can't see any sense in it, because we can't do Chr(#CRLF)

Re: #CRLF$ without the $

Posted: Sun Jan 06, 2008 10:12 am
by Kiffi
@DD: What i try to explain is, that IMHO it makes no sense to have a #CRLF

Greetings ... Kiffi

Posted: Mon Jan 07, 2008 1:20 am
by pdwyer
I don't really understand this... ?

it would be 16bit then? Hard to use in a byte array. Not usable like that for unicode either.

I'm not against it, I'm just trying to understand it.