Hello,
sorry that I'm annoying again ...
Is it feasible that words are not truncated in the Wordwrap function?
Current code:
Result is:
Hello my N
ame is Tes
t Text 123
.
i Need:
Hello my
Name is
Test Text
123.
sorry that I'm annoying again ...
Is it feasible that words are not truncated in the Wordwrap function?
Current code:
B4X:
Wordwrap ("Hello my Name ist Test Text 123.",10)
Sub Wordwrap (str As String, count As Int)
myList.Clear
For i = 0 To str.Length - count Step count
myList.Add(str.SubString2(i, i + count))
Next
myList.Add(str.SubString(i))
End Sub
Result is:
Hello my N
ame is Tes
t Text 123
.
i Need:
Hello my
Name is
Test Text
123.