Folks:
ASP issue using Jscript - I am trying to calculate a sum within a for loop using the equation:
c += a[z] * b[y+1];
where a is an array, as is b. c has been declared as a variable.
The result returns as NaN. I've tried parsing (parseInt) both a and b prior to multiplying. Funny thing is, when I remove the + so the eqn reads c = a[z] + b[y+1]; I get the answer I would expect.
Anybody have any suggestions, or am I missing something that is blatantly obvious.
Thanks,
Steve
ASP issue using Jscript - I am trying to calculate a sum within a for loop using the equation:
c += a[z] * b[y+1];
where a is an array, as is b. c has been declared as a variable.
The result returns as NaN. I've tried parsing (parseInt) both a and b prior to multiplying. Funny thing is, when I remove the + so the eqn reads c = a[z] + b[y+1]; I get the answer I would expect.
Anybody have any suggestions, or am I missing something that is blatantly obvious.
Thanks,
Steve