What is in each of the elements.  If they are pointers, deleting each element should result in each of the associated objects to be deleted.  If each element is an object, deleting the array should be enough.

Doug Melvin wrote:

woops.. the loop below is infinite..should be i-- not i++
----- Original Message -----
Sent: Friday, January 19, 2001 1:38 PM
Subject: [Dynapi-Help] Arrays
 Don't answer unless you know for sure (or can point me to a reference)What is the best way to delete an array. (of objects or otherwise) a) myarray=null;b) delete myarray;c) for (var i=myarray.length-1;i>=0;i++){
  delete myarray[i];
 }
delete myarray;
_______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to