hi
thanks for reply.
But in my input column is like 1234 | 2345| 234 |......
and i want my o/p as (pre 123) (pre 2345) (pre 234) ......
i think first i have to count for delimitors then can you tell me how to use feild function.
thks
have a feild xxxxx!yyyyyy .I want to format this string to
(pre xxxxx) (pre yyyy) as output.where ! is my delimitor.
pl share your thoughts.
format string
Moderators: chulett, rschirm, roy
To change a text string to another, use CHANGE or EREPLACE. Example:
To add the leading and trailing parenthesis, just append:
To add the "pre" text, just replace the "(" with "(pre"
To do it all at once in a single line:
Code: Select all
text_string=CHANGE(text_string, "|", ")(")
Code: Select all
text_string="(":text_string:")"
Code: Select all
text_string=CHANGE(text_string,"(", "(pre")
Code: Select all
text_string=CHANGE("(":CHANGE(text_string, "|", ")("):")","(", "(pre")
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Code: Select all
Convert(@FM, " ", Cats(Cats(Reuse("(pre "), Convert("|", @FM, InLink.TheString)), Reuse(")"))
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.
Re: format string
sainath wrote:hi
thanks for reply.
But...
![Idea :idea:](./images/smilies/icon_idea.gif)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers