Search code examples
genexus

Replacing newline character in Genexus


How can I replace newline character in a string with a space?

I tried this:

&myVar = &myVar.Replace(NewLine(),' ')

But it doesn't work.


Solution

  • I found myself the solution:

    &myVar = &myVar.Replace(Chr(10),' ')