For fld:TField=eachin id.EnumFields()
if fld.TypeID().Name()="Int" then fld.SetInt(test2,42)
next
Of course this works without EnumFields, but I'm at work, so I can't lookup how to get the field without it. Once you have a TField and a valid object, you can use the various Set... methods.