Documentation Center

PslSourceString.GetTextCounts

Counts words, letters and characters in the text of this source string. The count results are stored in the returned PslStringCounter object.

Syntax

Expression.GetTextCounts() as PslStringCounter

Expression Required. Object of type PslSourceString

Example

Sub CompareWordCount(s As PslSourceString)
  Dim srccount As PslStringCounter
  Set srccount = t.GetSourceTextCounts()

  PSL.Output "Word count : " & CStr(srccount.WordCount)
End Sub