Home Search

DriveWorks Pro 22
SppCountTextLines

Send Feedback

SppCountTextLines

Returns the number of lines in a given string of text.

This function counts the Windows line feed character \n.

Syntax

SppCountTextLines([String To Calculate])

Where:

String To Calculate is the string to return the number of lines from.

Example

RuleResultMeaning
SppCountTextLines("line one
line two
line three")
3Will return the number of lines (3) for the given string.