Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange behaviour in deleting object
Message
From
09/08/2006 09:31:33
 
 
To
08/08/2006 13:22:17
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01143804
Message ID:
01144094
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform