C
csx
Hi all,
Here's a simple problem I'm having problems with. How do I pass an array
element to a function.
For instance,
values[0] = new values(1, 1,'A',0);
values[1] = new values(2, 2,'B',1);
values[2] = new values(3, 3,'C',2);
Tto call the function:
var cols = count(values[1]);
The reciving function:
function count(values_array[n])
I need to pass an array element, rather than the whole array. Its a
recursive function, so i need to specifically keep passing back into the
function, the actual array index.
Thanks in advance!!
Here's a simple problem I'm having problems with. How do I pass an array
element to a function.
For instance,
values[0] = new values(1, 1,'A',0);
values[1] = new values(2, 2,'B',1);
values[2] = new values(3, 3,'C',2);
Tto call the function:
var cols = count(values[1]);
The reciving function:
function count(values_array[n])
I need to pass an array element, rather than the whole array. Its a
recursive function, so i need to specifically keep passing back into the
function, the actual array index.
Thanks in advance!!