Returns the number of lines in a given string of text.
This function counts the Windows line feed character \n.
SppCountTextLines([String To Calculate])
Where:
String To Calculate is the string to return the number of lines from.
Rule | Result | Meaning |
---|---|---|
SppCountTextLines("line one line two line three") | 3 | Will return the number of lines (3) for the given string. |