Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Requery ?
Message
From
31/07/2010 05:39:03
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01474625
Message ID:
01474721
Views:
28
>You need to use NewObject or AddObject, not CreateObject.
>
>NewObject method is used to add new form's controls to the form.
>
>CreateObject is used when you need to create a reference to some object. With visual objects (with the exception of forms) in 99% of cases you use NewObject.

To further clarify this, there's a NewObject() function, and the .NewObject() method. The functions create a standalone object to which you get a reference, and that's it. Such an object is initially invisible and has no parent. You can set it visible once you've set all the properties you wanted, but you can't give it a parent.

OTOH, objects which can have members have the .addobject() and .newobject() methods which create _member_ objects, and the creator object is the parent to its members, which is the crucial difference.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform