CreateFields method
The CreateFields method creates a runtime field object for each field that is specified within the corresponding page (or field) node in the document hierarchy.
For example, the 1040EZ page node in the
following document hierarchy has rules for three field objects. So, CreateFields(
) creates three field objects (Tax Year, SSN, Spouse
SSN).
<P type="1040EZ">
( <V n="ID">0</V>
<V n="TYPE">Page</V>
<V n="STATUS">0</V>
<V n="IMAGEFILE"></V>
<V n="DATAFILE"></V>
<V n="TEMPLATE IMAGE"></V>
<V n="MIN_TYPES">1</V>
<V n="MAX_TYPES">0</V>
<V n="rules"><in><r id="3" rs="4" /><r id="1" rs="5" /><r id="2" rs="6" /></in></V>
<F type="Tax Year" pos="0" min="0" max="0"/> <!-- Rule 0 -->
<F type="SSN" pos="0" min="0" max="0"/> <!-- Rule 1 -->
<F type="Spouse SSN" pos="0" min="0" max="0"/> <!-- Rule 2 -->
</P>
The child objects are used to hold the field
data that is generated during the field recognition process. This
method ensures that a data file is created for the current page when
a batch is saved.Syntax
- VBScript
oDCO.CreateFields( ) as Boolean.
- C#
bool CreateFields()