newline character
Moderators: chulett, rschirm, roy
newline character
Hi,
I need to concatenate some text + newline(\n) + <input field>.
Can any one help how to add newline between some text and input field.
Thanks
Anju
I need to concatenate some text + newline(\n) + <input field>.
Can any one help how to add newline between some text and input field.
Thanks
Anju
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Create a stage variable, let's call it svNewLine. In Windows, of course, the line terminator is actually two characters (carriage return and line feed), so initialize the stage variable to
Don't assign any new value to this stage variable during per-row processing.
The derivation for your output column then becomes
Code: Select all
Char(13):Char(10)
The derivation for your output column then becomes
Code: Select all
"some text" : svNewLine : InLink.InputField
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Anju,
Ray's response is part of Premium content, which you can view if you were to sign up for that relatively inexpensive membership.
Even though the message is not currently viewable in it's entirety, the portion that is visible gives you the clue on how to solve your problem. Basically, a "\n" (UNIX), or <CR><LF> (Windows) is just another string that can be manipulated with normal string functions.
Ray's response is part of Premium content, which you can view if you were to sign up for that relatively inexpensive membership.
Even though the message is not currently viewable in it's entirety, the portion that is visible gives you the clue on how to solve your problem. Basically, a "\n" (UNIX), or <CR><LF> (Windows) is just another string that can be manipulated with normal string functions.
LF (LineFeed) is Char(13)
CR (CursorReturn) is Char(10).
Lets say you want to have a new Line after "John" you code in Unix:
"
In windows it is:
CR (CursorReturn) is Char(10).
Lets say you want to have a new Line after "John" you code in Unix:
"
Code: Select all
John":char(13)
Code: Select all
"John":char(13):char(10)
Wolfgang Hürter
Amsterdam
Amsterdam
-
- Participant
- Posts: 10
- Joined: Wed Feb 27, 2008 3:37 am
-
- Participant
- Posts: 10
- Joined: Wed Feb 27, 2008 3:37 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: