Question

I'm making an Oracle Apex editor but it's not working properly. I'm trying to add a carriage return to a value in a "Rich Text Editor"

E.g: Hi i'm a select and i want to be your friend have to become this: Hi i'm a select [CR or CRLF] and i want to be your friend

I also tried putting "ascii(13)" where I want to put a CR but I get this: "select49".

Char(13) and chr(13) aren't working either.

What can I do to put in a CR?

Oracle Version: 11g - Apex Version: 4.2

Was it helpful?

Solution

You'd probably want to use CRLF instead of just CR:

SELECT 'Hi I am a select' ||
       CHR(13) || -- CR 
       CHR(10) || -- LF
       'and I want to be your friend'
FROM   dual
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top