counting lines with no CR
Posted: Thu Oct 08, 2009 6:50 pm
Hi, I'm going to kick myself here, I know:
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.

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.
