Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange behaviour in deleting object
Message
De
09/08/2006 09:31:33
 
 
À
08/08/2006 13:22:17
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01143804
Message ID:
01144094
Vues:
25
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform