I have to add some fields values in a string. The fields are Id, date, string and integer. The point is I can do this in that way:
String s; s= record.Id + record.Name + record.Date__c + record.Code__c;
I've tested that and it's working but when I try to change the order of the fields I get this error "Arithmetic expressions must use numeric arguments".