If you just want to loop through all the values you could do something like this
feature = get feature with the method of your choice
i = 0
for i to feature.fields.count -1
theValue = feature.value(i)
theFieldName = feature.fields.field(i)
Of course you have to be careful the way you handle the field values, you will be getting objectids, shapes, integers, strings and probably dbnulls.
Cheers