if (BarCntr>4){
for (i=1;i<4;++i){
vpast = ref(-i);
if (vpast[3]==null){
return;
}
!!! mR = vpast[3];
Sum+=mR;
debugPrintln("i: " + i +" mR= " + mR);
}
This code is near the bottom of my function.It computes 3 other things and is trying to refer to previous values of the fourth thing it computes to find a 4 bar average(a fifth thing).And it says vpast has no properties.I previously defined var vpast=new Array(5); .
for (i=1;i<4;++i){
vpast = ref(-i);
if (vpast[3]==null){
return;
}
!!! mR = vpast[3];
Sum+=mR;
debugPrintln("i: " + i +" mR= " + mR);
}
This code is near the bottom of my function.It computes 3 other things and is trying to refer to previous values of the fourth thing it computes to find a 4 bar average(a fifth thing).And it says vpast has no properties.I previously defined var vpast=new Array(5); .
Comment