You don't set an array to nothing in VBScript either... you do ERASE.<BR><BR>I don't think js has a delete command. Why are you so concerned about clearing the array? If you have new information, just overwrite it. Otherwise, you may want to peruse the JS help files to see it there is a similar command to VB's ERASE.
Thanks for the reply. The reason is that I want to kill the array in the page because netscape is having problems knowing which array I am referring to when I do this.[arrayname]<BR><BR>I am taking live feeds from a hidden layer, which supplies an array of values refreshed everys second. The browser looks inside the layer and uses them to write to the screen. When it looks for the array the second time Netscape decides to use the array it already has and not the array in the layer, hence I want to kill the array in the page. So far netscape's own documentation and website has been USELESS.<BR><BR>P.S. I hate Netscape :-)
Wonder if it looks in the memory cache? Who knows...<BR><BR>Have you tried:<BR><BR>delete myarray<BR><or><BR>loop though the sucker doing<BR>delete myarray[i]<BR><BR>You'll have to look under the help to see what exactly delete does... I can't remember if it's like C++ and kills the entire object, or if it can only kill an element at a time?<BR><BR>I'll join your club of hating Netscape... and while we're at it, let's throw in WebTV and AOL.<BR><BR>Good Luck!
Cheers mate.<BR><BR>Delete myArray() seems to kill the object, but it still doesn't do what I want it to. I have asked my boss if we can abandon the netscape version (no-one will ever use it anyway)<BR><BR>Ben