To verify that the array has realy 506688 elements after upper assignments simply look for the array.length;
Main Topics
Browse All Topicsey everyone I need help with the following:
I have an array ...
array[506484] = blah
array[506688] = blah
array[506445] = blah
etc
those numbers are NOT array ids but identifiers... I need to remove some of them but when I use splice I think what's happenning is that the splice function is interpeting the nubmers as array IDS rather then textual ids... ie: for ( index in array )
any ideas? thanks guys
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hello Gwyn, can you have a look at my calculation here: http:Q_21480616.html
And for here, no splice needed to remove an associative indexed element.
Simply delete it:
<script>
blah = "BLa Blah";
array = new Array();
array[506484] = blah
array[506688] = blah
array[506445] = blah
alert(array.length);
array["506484x"] = blah
array["506688x"] = blah
array["506445x"] = blah
alert(array.length);
delete array["506688x"];
alert(array.length);
array.length = 0;
for(i in array){
alert(i+": "+array[i]);
}
</script>
thanks Zvonko... I emulated it by doing a delete on the element i'm moving, then just rebuilding the array, and re-inserting the element at the row necesarry. Works fine. I was guessing the splice and slice would not work, but figured I'd ask here first just to make sure.
And sorry for the question here. I thought it was relevant to the question at hand (since VFM-Tech was thinking his were being evaluated as text indexes). Lesson learned ;)
Business Accounts
Answer for Membership
by: ZvonkoPosted on 2005-07-05 at 09:02:30ID: 14370395
They ARE numeric indexes and not hash string associative indexes.
To make them associative indexes you have to add an alpha character to the key.