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)"