I have a field which does not accept returns. On a button click I wish to put the amount of actual lines in the field into a variable.
The problem is if there is more than one line without returns, it still counts the lines as 1 (i.e as 1 wrapped line). I need to know the amount of visible lines in the field.
So my question please:
How to count the actual lines showing in a field
I should know this but I've forgotten, sorry...

Any help appreciated.
