Object returnval= new Double(0);
String retstr = null;
String array= "";
boolean isArray= (this.parent_rec instanceof Array);
for(int t=0;t<refCell.length;t++) {
BiffRec cel = refCell[t];
if (cel==null) { // 20090203 KSC
continue;
}
try{
Formula f = (Formula)cel.getFormulaRec();
if (f!=null){
Object oby = f.calculateFormula();
String s = String.valueOf(oby);
try{
//Double d = new Double(s);
returnval = new Double(s);
}catch(NumberFormatException ex) {
retstr = s; // 20090202 KSC: was +=
}
}else{
returnval = cel.getInternalVal(); //DblVal(); // 20090202 KSC: was +=
}
} catch(FunctionNotSupportedException e) {
; // keep going???
} catch(Exception e){
returnval = cel.getInternalVal(); //DblVal(); // 20090202 KSC: was +=
}
if (!isArray) // 20080730 KSC: if not an array, retrieve only 1st referenced cell value
break;
//
if (retstr!=null)