Hi
I have declared a series of arrays each containing 18 elements.
I want to write some java that will allow me to write the array elements into a html table for displaying on screen.
I have named the arrays srch1, srch2, srch3 etc.
I want to pass a number into the function that displays the elements and say use array srch? where ? is the number I've passed in.
I am not an experienced programmer and I thought I could just do something like
function FillTable (n) {
target = 'srch'+n;
document.all(NameCell).innerHTML = target[0];
document.all(NameCell).innerHTML = target[1];
but I assume the code looks for an array called target and gives me undefined for all the values.
I know the answer to this is probably obvious but please be gentle.