PDA

View Full Version : Newline character



Bret
01-16-2011, 11:27 PM
How do I use a newline, carriage return, or linefeed character in a variable that is to be displayed in a dialog?

I have a variable that I am using to build and display customized text in the welcome dialog. However, I cannot figure out how to put a newline character in it. I have tried \r\n and the const method I found at this link but still no luck.
http://www.lindersoft.com/forums/showthread.php?t=16249
I have also tried the Handle String Operation...Replace with constants and variables.

Thanks,
Bret

linder
01-17-2011, 01:01 AM
Bret,

I have developed and attached a quick demo for you.

Does this help?

Friedrich

Bret
01-17-2011, 12:05 PM
Yes, that definitely helps! Thanks for the detailed demo. I had changed the dialog text field from the #DLG_WELCOME_TEXT# identifier to use a variable like %WELCOME_TEXT%. It worked except the \n wasn't interpreted as a newline. Now I changed the dialog back to use #DLG_WELCOME_TEXT# and edited the text within that to only contain %WELCOME_TEXT% and it works the way I needed.

Thank you,
Bret

linder
01-18-2011, 12:52 AM
You are very welcome :)

Friedrich