I thought about it but it is a nonsense as i do the job with the loop
for i = Myobj.controlcount to 1
endfor
I supposed there was something like hidden index as Fabio told me but I wanted to be sure about it. :-)
thank you anyway
Alessio
>>No, it doesn't work i get the error "an object with this.name already exists"
>>
>>and I checked that is the second of the three object which is not removed.
>
>Then you'll have to copy the names into an array before deleting:
>
nCount=this.objects.count
>dimension aNames(nCount)
>for i=1 to nCount
> aNames[i]=this.objects[i].name
>endfor
>for i=1 to nCount
> this.removeobject(aNames[i])
>endfor