Alexander Stolte Expert Licensed User Longtime User May 19, 2018 #1 Hello, how can i get the line count on TextField? Greetings
Drago Bratko Active Member Licensed User Longtime User May 19, 2018 #2 I would take Text property of a TextField, and count number of CRLF's ... didn't check but should be one of the solutions. Upvote 0
I would take Text property of a TextField, and count number of CRLF's ... didn't check but should be one of the solutions.
Alexander Stolte Expert Licensed User Longtime User May 19, 2018 #3 Drago Bratko said: CRLF's Click to expand... but CRLF is only triggered if the user press enter or not? Upvote 0
Drago Bratko said: CRLF's Click to expand... but CRLF is only triggered if the user press enter or not?
Drago Bratko Active Member Licensed User Longtime User May 19, 2018 #4 Yes, true. I understod wrongly your question. Now I got it what you asked. Don't know how to get that ... sorry. Upvote 0
Yes, true. I understod wrongly your question. Now I got it what you asked. Don't know how to get that ... sorry.
Erel B4X founder Staff member Licensed User Longtime User May 20, 2018 #5 What do you want to do with this information? Upvote 0
Alexander Stolte Expert Licensed User Longtime User May 21, 2018 #6 I want to set the user a limit, I do not want a user can go down an infinite number of lines, otherwise the list is too long. There are enough trolls these days. Upvote 0
I want to set the user a limit, I do not want a user can go down an infinite number of lines, otherwise the list is too long. There are enough trolls these days.
Erel B4X founder Staff member Licensed User Longtime User May 22, 2018 #7 In that case I think that you should go with a simple solution: 1. Check the number of CRLF and limit based on that number. 2. Add a general limit for the text length. Upvote 0
In that case I think that you should go with a simple solution: 1. Check the number of CRLF and limit based on that number. 2. Add a general limit for the text length.