Ah, thank you, now I've got itjan_nl wrote:oops, I think I pointed you in the wrong direction.
You need to compare the Status value in PageArray.
In the array the word Humidity or Temp can be found, in this way you can determine what is in which cell.
Sorry for the confusion.
Jan
The following works like a charm:
Code: Select all
if(item.idx == '35' && vdata > -100 && vtype == 'Temp'){ // Adds the Celsius sign after the temperature
vdata=new String(vdata).replace( vdata,vdata + "℃");
}
if(item.idx == '35' && vdata > -100 && vtype == 'Humidity'){ // Adds the Percentage sign after the humidity
vdata=new String(vdata).replace( vdata,vdata + "%");
}