def addValueToField(self, i, value=None):
assert(len(self.fields)>i)<EOL>if value is None:<EOL><INDENT>value = self.fields[i].dataClass.getNext()<EOL>self.fields[i].addValue(value)<EOL>return value<EOL><DEDENT>else: self.fields[i].addValue(value)<EOL>
Add 'value' to the field i.
        Parameters:
        --------------------------------------------------------------------
        value:       value to be added
        i:           value is added to field i