Lello1964 Well-Known Member Licensed User Longtime User Nov 26, 2019 #1 I have to limit an Edittext multiline number of characters per line max 32 character. how can i do ? Raffaele
I have to limit an Edittext multiline number of characters per line max 32 character. how can i do ? Raffaele
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2019 #2 You will need to handle the TextChanged event, split the text to lines and check the lengths. Upvote 0
Lello1964 Well-Known Member Licensed User Longtime User Nov 27, 2019 #3 Erel said: You will need to handle the TextChanged event, split the text to lines and check the lengths. Click to expand... Erel, can tell me an example ? Thanks Upvote 0
Erel said: You will need to handle the TextChanged event, split the text to lines and check the lengths. Click to expand... Erel, can tell me an example ? Thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 27, 2019 #4 I'll help you with splitting the text: B4X: Dim s() As String = Regex.Split("[\r\n+]", NewText) For Each line As String In s Log(line) Next Upvote 0
I'll help you with splitting the text: B4X: Dim s() As String = Regex.Split("[\r\n+]", NewText) For Each line As String In s Log(line) Next