This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Putting a newline character into a string
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 07, 2010
01:43 PM
Putting a newline character into a string
In order to work around another problem (I would like to set $INSTALL_SUCCESS$ to one of the warning or error values when a certain set of conditions occurs, which the base installer itself doesn't realize are error conditions, but $INSTALL_SUCCESS$ is read-only), I now want to set a variable to the message to be displayed upon "successful install". However, to make this message nicely formatted, I would like to insert newline characters into it.
Wouldn't it be nice if I could use $line.separator$ or something? Wouldn't it be nice if I didn't have to resort to custom code to format my message?
Is this possible? I can't find any documentation, but maybe my search strings are inadequate. I have tried $line.separator$ and $java.line.separator$ but I'm tired of guessing (and I'm actually guessing it's not available).
Meantime, I suppose I'll write FormatMessage.
Wouldn't it be nice if I could use $line.separator$ or something? Wouldn't it be nice if I didn't have to resort to custom code to format my message?
Is this possible? I can't find any documentation, but maybe my search strings are inadequate. I have tried $line.separator$ and $java.line.separator$ but I'm tired of guessing (and I'm actually guessing it's not available).
Meantime, I suppose I'll write FormatMessage.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 07, 2010
02:30 PM
I found it. $prop.line.separator$. Dunno why it was so hard to find; probably because I was searching for something specific to line separator rather than general "get property".