Page 1 of 1

what is New line character in map?

Posted: Thu Mar 15, 2007 2:40 am
by Sne
My input file is in the form abc|xyz|lmn|...
I need to substitute the pipe character (|) with the new-line character.

I need full syntax for the function "substitute" in my map, so that my output file would be
abc
xyz
lmn
and so on ...


Thanks in Advance
Sneha

Posted: Thu Mar 15, 2007 6:12 am
by kumar_s
Hi Sneha,

Welcome Aboard :D !!!
Should be char(13) with the convert function.

Posted: Thu Mar 15, 2007 4:15 pm
by jvmerc
New line in Windows is CR LF or 0D0A. When run on Unix I believe its LF or 0A.

So you could use substitute(text, "|", "<NL>") and it should replace the character according to the environment your compiled in. If you want to make sure its alway Line feed do one of the following....

substitute(text, "|", "<LF>")
substitute(text, "|", "<<0A>>")