Does anyone know how to get rid of the eval?
You get the idea of what the JS is doing. The problem is that the magic occurs with an eval.
array = 'Col' + x + "[" + y + "]"; resultme = eval(array);
Does anyone know if there is a better way?
Chris EscalantePsalm 51:10 Create in me a clean heart, O God; and renew a right spirit within me.
« Back to blog
Does anyone know how to get rid of the eval?You get the idea of what the JS is doing. The problem is that the magic occurs with an eval. array = 'Col' + x + "[" + y + "]"; resultme = eval(array); Does anyone know if there is a better way? |
|