01-10-2012 07:36 AM
hi,
i wanted to concatenate 2 strings. i have two strings, s1 and s2. i wanted to concatenate s2 in between the text at specific place in s1, instead at the end. how do i do this?
please help.
thanks sunal
01-10-2012 07:38 AM
You need to use Split string on S1 and then concatenate s1' + s2 + s1"
/Y
01-10-2012 07:39 AM - edited 01-10-2012 07:39 AM
Split s1 where you want to insert, then concat s1a, s2, and s1b by expanding the concat to accept 3 parameters.
EDIT: Doh, I'm too slow. . .
01-10-2012 07:39 AM
How do you know where to insert the text from S2 into S1?
01-10-2012 07:42 AM
I have found that a hammer works quite well in these kinds of situations.
01-10-2012 09:24 AM
@aeastet wrote:
How do you know where to insert the text from S2 into S1?
That wasn't the question. For now. 😉
/Y
01-10-2012 12:34 PM
yup.got it thanks.
01-12-2012 08:52 AM
01-12-2012 09:58 AM
@aeastet wrote:
@Yamaeda wrote:
@aeastet wrote:
How do you know where to insert the text from S2 into S1?
That wasn't the question. For now. 😉/Y
No but it will probably make a difference on how you do it.
I was ready to bet some pennies on what the next question would be ... but it hasn't come yet. 🙂
/Y