Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Release a form
Message
 
 
To
17/11/2004 05:17:10
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00960885
Message ID:
00962378
Views:
12
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 ?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform