New line in string

0
Hi guys, I have a question about something that should be very simple, but i cannot figure it out. I've looked through all the questions about this and cannot find the answer. I've tried <br>, <br/>, \r\n, url decode. I've tried opening a quote on line 1 and closing it on line 2. I've tried adding new lines inside of the quote. I want to pass this string to a new object. So i tried all the above methods by creating a variable first and then passing that to the new object. Also i've tried passing it directly into the object. Could someone help me solve this :)  Thank you!
asked
3 answers
0

Hi Jitze,

 

I think this is what you’re looking for:

https://forum.mendix.com/link/questions/1749

answered
0

I'm trying to view this string in a rich text box.

answered
0

I managed to solve it for myself. Maybe this will help others too.

1. I used this formatting: ‘string 1’ + ‘<br /><br />’ + ‘string 2’. 
2. I changed the setting in the rich text editor for the enter action to break lines instead of paragraphs. 
3. It shows the break in the rich text field. 

answered