func doEnum(data) this.arr = d("Data") if((typeof(this.arr)==5) and this.arr.size()) for(this.idx = 0; this.idx < this.arr.size(); this.idx++) event("onItem", this.arr.get(this.idx)) end event("onEndEnum") end end func Item return(this.arr.get(this.idx)) end func Index return(this.idx) end