WordCount

This read-only property returns the number of words of the workdoc.

Syntax

WordCount as Long

Sample Code

Private Sub MyField_PostAnalysis(pField as SCBCdrField, pWorkdoc as SCBCdrWorkdoc)
   Dim cindex as long, count as long, id as long
   'add a new candidate to the field
   if pWorkdoc.Wordcount > 42 then	'use the 42th word as new candidate
      count = 1 'wordcount of new candidate
      id = 0 'rule-id for later backtracing
      pField.AddCandidate 42, count, id, cindex
      'cindex is the new index of the candidate
   end if
End Sub