Quote from
luishp on July 16, 2019, 9:56 am
Every HTML object will accept <br> tag as a linefeed except for TextArea.
A line feed in TextArea objects works more like in a traditional text file using \r\n as a new line special characters.
All you have to do is take it into account when showing text from a TextArea into any other object or setting the text inside a TextArea.
Example to use in a TextArea variable (will show two lines):
SetVar [myvar] "Hello\r\nworld!"
Example to take a variable from a TextArea and show it into a Container object:
StrReplace "[myvar]" "\r\n" "<br>" [myvar] ""
SetObjectHTML "Container1" "[myvar]"
Take a look at the attached sample.
Every HTML object will accept <br> tag as a linefeed except for TextArea.
A line feed in TextArea objects works more like in a traditional text file using \r\n as a new line special characters.
All you have to do is take it into account when showing text from a TextArea into any other object or setting the text inside a TextArea.
Example to use in a TextArea variable (will show two lines):
SetVar [myvar] "Hello\r\nworld!"
Example to take a variable from a TextArea and show it into a Container object:
StrReplace "[myvar]" "\r\n" "<br>" [myvar] ""
SetObjectHTML "Container1" "[myvar]"
Take a look at the attached sample.
Uploaded files:- You need to login to have access to uploads.
noyzen has reacted to this post.