Most CTRecord class methods that operate on fields have overloaded methods that will accept a field number or a field name as a parameter to indicate which field to operate on.
TOCIndex