DeleteValue method
The DeleteValue method deletes a data value and the corresponding confidence level value of a character object.
In the following example, the fourth character contains a
primary confidence level value of 6, a first alternative confidence
level of 8, and a second alternative confidence level of 10. The fourth
character also contains a primary character value of 110, a first
alternative character value of 52, and a second alternative character
value of 56.
<F id="Vendor">
<V n="TYPE">Vendor</V>
<V n="Position">0,0,0,0</V>
<V n="STATUS">1</V>
<C n="6,8,10" cr="0,0,0,0">83,49,53</C>
<C n="6,8,10" cr="0,0,0,0">116,50,54</C>
<C n="6,8,10" cr="0,0,0,0">105,51,55/C>
<C n="6,8,10" cr="0,0,0,0">110,52,56</C>
</F>
Syntax
- VBScript
oDCO.DeleteValue (nIndexValue as Long) as Boolean
- C#
bool DeleteValue(int nIndexValue)
Applies to
Character objects only.Arguments
- nIndexValue
- The index of the value to be deleted, where 0 is the primary value, 1 is the first alternative value, and so on.
Returns
Returns true if successful; returns false if unsuccessful.C# example
This example deletes the first alternative character value and the first alternative confidence level value.m_oDCOChar.DeleteValue(1);
Character XML before: "\t<C cn=\"10,9\" cr=\"0,0,0,0\">83,99</C>\n"
Character XML after: "\t<C cn=\"10\" cr=\"0,0,0,0\">83</C>\n"