Forum Post: RE: REPLACE and CHR(10) in Windows

  • Thread starter Thread starter Matt Gilarde
  • Start date Start date
Status
Not open for further replies.
M

Matt Gilarde

Guest
Can you provide code that demonstrates what you're seeing? I can't get the same results and I don't see anything in the CHR or REPLACE functions that would cause it. DEF VAR a AS CHAR INIT "abc". a = REPLACE(a, "b", CHR(10)). MESSAGE ASC(SUBSTRING(a, 1, 1)) ASC(SUBSTRING(a, 2, 1)) ASC(SUBSTRING(a, 3, 1)). This code shows: 97 10 99 If I write the string to a file the LF is converted to CR/LF, but that conversion can be avoided with the BINARY option on the OUTPUT TO statement.

Continue reading...
 
Status
Not open for further replies.
Back
Top