>I think changing the visible setting is best but if you really want to remove them then you can loop through each object in the forms controlcount something like this:
>
>FOR i = 1 TO Thisform.ControlCount
> IF Thisform.Controls[i].BaseClass = "Label"
> Thisform.RemoveObject(Thisform.Controls[i].name)
> ENDIF
>NEXT
>
If you want to remove objects, you need to loop backwards.
If it's not broken, fix it until it is.
My Blog