PostAnalysis
This event triggers after the analysis step performs. It is possible to examine the list of all candidates and to add further candidates to the field.
Syntax
<Fieldn>_PostAnalysis (pField as ISCBCdrField, pWorkdoc as ISCBCdrWorkdoc)
Parameter | Description |
---|---|
pField | The object containing the field. |
pWorkdoc | The current workdoc object. |
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