Thomas,
What Fabio proposes is a rather unuseful thing though.
Createobject() objects aren't part of the form containership hierarchy and therefore they do not participate in the event loop, ie you can't interact with them via the mouse or keyboard and they can't be seen.
oForm = createobject( "form")
oForm.Visible = .t.
oForm.AddProperty( "oButton", createobject( "commandbutton" ) )
oForm.oButton.Visible = .t.
You can't see the button, you can't click it.
oForm.AddObject( "GoodButton", "commandbutton" )
oForm.GoodButton.Visible = .t.
this one you can see and click
>are you saying that the destruction will be *markedly*
>faster if you don't form.addObject into 1000 form control references
>but instead createobject() into a form.myAddedButtons[1000]
>and releasing them manually with form.myAddedButtons = .f. ?
>
>Or have I misunderstood your answer ?