Page 1 of 1

Additional Constants - #EOL$, #SOC, #SOI

Posted: Fri Jun 08, 2018 4:32 am
by Josh
With V5.70 we got some new nativ constants:

Code: Select all

- Added: #PS, #NPS, #PS$ and #NPS$ constants (Path seperator character depending of the OS)
Would be nice if they could be extended a bit with:

Code: Select all

#EOL$ ; EndOfLine, depending on the used OS (#CR$, #LF$, #CRLF$)
#SOC  ; a shortcut for SizeOf (Character)
#SOI  ; a shortcut for SizeOf (Integer)

Re: Additional Constants - #EOL$, #SOC, #SOI

Posted: Fri Jun 08, 2018 10:48 am
by davido
+1

Re: Additional Constants - #EOL$, #SOC, #SOI

Posted: Sat Jun 09, 2018 4:17 pm
by kenmo
+1

In my own files I use #EOL$, #IntSize, #CharSize.

I think #EOL$ should be #LF$ on everything but Windows (CRLF)... if I heard correctly, MacOS hasn't used #CR$ as default in many many years.

Re: Additional Constants - #EOL$, #SOC, #SOI

Posted: Mon Jun 11, 2018 8:13 am
by RSBasic
+1