set_OMRValue

The set_OMRValue method sets the character values within the OMR field to indicate whether a check box is selected.

Description

Each character is assigned the value 0 (ASCII 48; not selected) or 1 (ASCII 49; selected) and the resulting binary string is expressed as a decimal. The following XML example represents a row of six check boxes and the binary string is 001000, which equals 8 in decimal. So, the required value is 8.
<F id="1a">
   <V n="TYPE">1a</V>
   <V n="Position">120,1025,853,1169</V>
   <V n="STATUS">0</V>
   <V n="DensityString">BAAVAA</V>
   <C cn="10" cr="519,1132,559,1170">48</C>  <-- 48 indicates option not selected 
   <C cn="10" cr="563,1132,603,1170">48</C>
   <C cn="10" cr="607,1132,647,1170">48</C>
   <C cn="10" cr="652,1132,692,1170">49</C>  <-- 49 indicates option selected 
   <C cn="10" cr="697,1132,737,1170">48</C>
   <C cn="10" cr="763,1132,803,1170">48</C>
</F>

Syntax

C#
void set_OMRValue(int nIndex, int pVal)

Arguments

nIndex
0 specifies the primary value. Where the field contains multiple recognition, voting, or multi-pass data entry values, 1 specifies the first alternative, 2 specifies the second alternative, and so on.
pVal
A number that reflects the state of each OMR check box. (See the XML example.)