The following script sample shows how to replace the extracted BFE candidates with the ones extracted by the Format Analysis engine or how to keep both kinds of candidates in the candidates array.
Example: BFE candidates in a script
Private Sub Date_PostEvaluate(pField As SCBCdrPROJLib.SCBCdrField, pWorkdoc As SCBCdrPROJLib.SCBCdrWorkdoc) Dim i As Long For i = pWorkdoc.Fields.ItemByName("Date").CandidateCount - 1 To 0 Step -1 ' Comment the code line below if you'd like to keep both types of candidates (from FAE and BFE) pWorkdoc.Fields.ItemByName("Date").RemoveCandidate(i) Next i pWorkdoc.DocState = CDRDocStateClassified pWorkdoc.Fields.ItemByName("Date").FieldState = CDRFieldStateReset Project.AllClasses.ItemByName("Invoices").AnalyzeField pWorkdoc, "Date" End Sub