Hi
I had requirement where i need to split the incoming string at 137 charector till 137 charector one string and other characters in a new line.
Any has info regarding the task.
Please note:Data is Dynamic
Hi
I had requirement where i need to split the incoming string at 137 charector till 137 charector one string and other characters in a new line.
Any has info regarding the task.
Please note:Data is Dynamic
Assign firstPart = longString.Substring(0, Math.Min(137, longString.Length))
Assign secondPart = longString.Substring(Math.Min(137, longString.Length))
Assign resultString = firstPart + Environment.NewLine + secondPart
or
If incomingString.Length >= 137
Assign firstPart = incomingString.Substring(0, 137)
Assign secondPart = incomingString.Substring(137)
Assign resultString = firstPart + Environment.NewLine + secondPart
Else
Assign resultString = incomingString
Hi @mettudp075
Try this
Assign incomingString = “Your dynamic data here”
Assign firstPart = incomingString.Substring(0, 137)
Assign remainingPart = incomingString.Substring(137)
Assign result = firstPart + Environment.NewLine + remainingPart
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.