Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removeobject() doesn't always work
Message
From
24/11/1999 01:48:46
 
 
To
23/11/1999 14:51:46
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00294515
Message ID:
00294839
Views:
22
Hi Mike,

Thanks.

"Sometimes you can't see the Forrest, because the trees are standing in your way"



>Hi Benn,
>
>>Why doesn't RemoveObject() remove an object?
>
>Its not the Remove thats failing, it because your in a FOR EACH and removing objects at the same time, try:
>
>
FOR lnI = This.ControlCount TO 1 STEP -1
>   IF ...
>     REMOVE...
>   ENDIF
>ENDFOR
Benn Kjaer
MS Certified Professional - Visual Foxpro

"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"
Previous
Reply
Map
View

Click here to load this message in the networking platform