T
Thomas Mlynarczyk
Hi,
I have noticed, that for an array using string indices, the length property
does not seem to work.
a = new Array();
a['Name'] = 'Thomas';
a['Place'] = 'Home';
alert(a.length) will give 0.
Is there another way to get the number of elements in an array (or object)?
Greetings,
Thomas
I have noticed, that for an array using string indices, the length property
does not seem to work.
a = new Array();
a['Name'] = 'Thomas';
a['Place'] = 'Home';
alert(a.length) will give 0.
Is there another way to get the number of elements in an array (or object)?
Greetings,
Thomas