Like i said earlier your join is wrong and will give your undesired output
The above should be the correct order given that the first char is in strB so that goes before the next char strA
Like i said earlier your join is wrong and will give your undesired output
The above should be the correct order given that the first char is in strB so that goes before the next char strA
I am using it in for each loop… it is working as i did earlier and used remove function as you suggested.
Now it is working as expected. but value is coming as 3,2,1-- i want them in ascending order 1,2,3…
yes, that is because of the Join function you have used.
Can you use this and test and let me know if it works?
strB=String.Join("~",strB,strA.TrimStart).TrimEnd
Got it,… Its working…
Thanks
Great!
[Please mark the appropriate answer as solution to your main thread question for future/quick reference ]
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.