Hello

i am trying to use the following code.
it work perfectly with firefox, konqueror, opera, but not with ie (foo.length = 0 despite i add some object).

Does anybody know a solution for this issue ?

Many thanks

--- cut
listeCommandes.prototype = new Array;
function listeCommandes(){
this.ajouter = function (obj){
this.push(obj);
}
this.supprimer = function (index){
this.splice(index,1);
}

this.totalht = 0;
this.totalttc = 0;
this.totaltva = 0;
}

var foo = new listeCommandes()

foo.push("ee");
foo.ajouter("ee");

alert(foo.length);

--- cut