Hi All,
If possible, Pls give solution below mentioned format
Input string : Dhoni MS.
I expected Output : MS Dhoni
Hi All,
If possible, Pls give solution below mentioned format
Input string : Dhoni MS.
I expected Output : MS Dhoni
Follow these steps:
Assign: inputString = “Dhoni MS.”
Assign: firstName = inputString.Split(" "c)(1)
Assign: lastName = inputString.Split(" "c)(0)
Assign: outputString = firstName.Trim() + " " + lastName.Trim()
Write Line: outputString
Thanks,
Ashok ![]()
![]()
But we guess that more variations on the input should be analyzed in advance
That’s a lot of extra work for no reason.
Just do…
inputString = inputString.Split(" "c)(1) + " " + inputString.Split(" "c)(0)
Creating all those extra variables is unnecessary.
Hi @AJITH_SK
Use below syntax in Assign activities:
inputString = "Dhoni MS."
outputString = String.Join(" ", inputString.Split(" "c).Reverse())
Regards
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.