Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
============= Start code =============
java.lang.reflect.Field[] input_fields = row1.getClass().getDeclaredFields();
Object[] months = new Object;
============= Main code =============
int position = -1;
row2.Data = "";
for( java.lang.reflect.Field field : input_fields ) {
if (++position<5) {
continue;
}
field.setAccessible(true);
Object fieldvalue = field.get(row1);
if (tos_count_tFileInputExcel_1==1) {
months = fieldvalue;
} else if (months!=null) {
row2.Data += (position==5?"":"~") + months + "#" + (fieldvalue==null?"":fieldvalue);
}
}