Currently I'm looping through values, based on the loop # I want to be able to get different field values.
Example:
Integer years = 1;
for(Integer i = 1; i <= formYears; i++){
String fieldName = 'year_'+i+'__c';
Decimal increase = map.get(key).fieldName;//Here is the issue, can't use String! years = years + 1;
}
Is this possible? Any suggestions?