Add an Alternative
17508
QAID # 17508 Published
Question / Problem:
Add an Alternative
Answer / Solution:
To add an alternative, you have to set the text of the alternative and the confidence.
The code snippet shows the script to add an alternative from the Script Locator named "LocatorName." The text of the alternative is "text of alternative" and the confidence is 20%.
Private Sub LocatorName_LocateAlternatives(ByVal pXDoc As CscXDocument, _ ByVal pLocator As CscXDocField) Dim oAlt As CscXDocFieldAlternative Set oAlt = pLocator.Alternatives.Create() oAlt.Text = "text of alternative" oAlt.Confidence = 0.2 End Sub
Applies To:
Product | Version | Category |
---|---|---|
AXPRO | 4.0 | Script |
AXPRO | 4.5 | Script |
AXPRO | 5.0 | Script |
AXPRO | 5.5 | Script |