Sunny schreef:
Quote:
Hi,
>
Do anyone, Knows, How to get array Name?
>
Like If I have a array:
abc & I would like to get the name abc, How can I do that.
I am trying to set abc.name but its not working.
>
I have to get the array name, so that I can change them dynamically.
What to do?
[I posted a wrong version first, I hope the cancelation worked. :P]
Hi,
What do you mean excactly?
var myArr = [1,2,3];
var meToo = myArr;
hereIsAnArr(myArr);
function hereIsAnArr(someArr){
// do you want to find the name of the arr here?
// Then what name? myArr or meToo?
}
The 'name' of an array is just a variablename available in a certain
scope that POINTS TO (=reference) an array.
(I hope I phrased that right.)
Maybe I misunderstand what you mean. If so, please clarify.
Regards,
Erwin Moller
--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare