I want to paste a string into a text area where the limit is 4000 chars. If the string is longer than 4000 then it should divide it. For ex. if length is 5000 then it should divide it into two parts (4000, 1000), if the length is 9000 then it should divide it into 3 parts (4000, 4000, 1000).
String does not have any specific separator, so it should divide from 0 - 4000, 4001 to 5000 and so on till its length in equal parts.
@MaheshShelke I guess you’ll need to use some logic around, substring and remove functions of a String.
You can first Check if the Length of the String is greater than 4000, then use :
stringVar.SubString(0,4000-1) and stringVar.Remove(0,4000-1)
else :
stringVar.SubString(0,stringVar.Length-1)
I guess you could do something like this, If you didn’t understand Properly, I can make a workflow
Also how many text areas will be present ?