If I would like to change the number of data points in the "return new Array()" function how would it be done.
Here is an example of what I am talking about;
vLen = 2
for(i = 0; i < vLen; i++)
Stop[i] = vValue4 + SATR[i];
}
return new Array (Stop[0],Stop[1]);
This returns 2 values to be drawn. What if I want to change the variable vLen from 2 to 3.
vLen = 3
for(i = 0; i < vLen; i++)
Stop[i] = vValue4 + SATR[i];
}
return new Array (Stop[0],Stop[1],Stop[2]);
3 values returned. The problem is I have to go back into the code and add "Stop[2]" to the "return new Array ()" function.
Is there a way to this with out having to go back into the code. Is there a way to program it?
Here is an example of what I am talking about;
vLen = 2
for(i = 0; i < vLen; i++)
Stop[i] = vValue4 + SATR[i];
}
return new Array (Stop[0],Stop[1]);
This returns 2 values to be drawn. What if I want to change the variable vLen from 2 to 3.
vLen = 3
for(i = 0; i < vLen; i++)
Stop[i] = vValue4 + SATR[i];
}
return new Array (Stop[0],Stop[1],Stop[2]);
3 values returned. The problem is I have to go back into the code and add "Stop[2]" to the "return new Array ()" function.
Is there a way to this with out having to go back into the code. Is there a way to program it?
Comment