AddItemToVocabulary

This method adds a vocabulary entry to the list of possible items.

Syntax

AddItemToVocabulary (Name as string, Weight as long, caption as CroParaCheckVocabularyEntriesAddOptions, IsVisible as Boolean)
Parameter Description
Name

Possible values

  • Payee Name: Provide the name of the possible payee candidates.

  • Keyword: Provide a keyword for possible payee candidates. This can be a single word or part of the payee name.

Weight Set a value between 0 and 15. Typically, most words have a weight of zero. A weight value of 15 corresponds to a vocabulary entry that appears in approximately 50 percent of the images.
caOption

Possible values

  • CroParaCheckVocabularyEntriesAddStatic: Add entry to the static vocabulary.

  • CroParaCheckVocabularyEntriesAddDynamic: Add entry to the dynamic vocabulary.

IsVisible

Possible values

  • True: The entry is visible in the GUI table in Designer.

  • False: The entry is not visible in the GUI table in Designer.

Sample Code

Dim theFieldCheckAnalysisSettings as Object
Set theFieldCheckAnalysisSettings = FieldAnalysissettings
Dim ParaCheckSettings as SCBCdrParaCheckAnalysisSettings
Set ParaCheckSettings = theFieldCheckAnalysisSettings
ParaCheckSettings. AddItemToVocabulary "PayeeName1", 0, CroParaCheckVocabularyEntriesAddDynamic,True
ParaCheckSettings. AddItemToVocabulary "PayeeName2", 15, CroParaCheckVocabularyEntriesAddDynamic, True
ParaCheckSettings. AddItemToVocabulary "PayeeName3", 0, CroParaCheckVocabularyEntriesAddDynamic, False
ParaCheckSettings. AddItemToVocabulary "PayeeName4", 5, CroParaCheckVocabularyEntriesAddDynamic, True