Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where object dropped on form is instantiated?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01450463
Message ID:
01450477
Views:
50
It's not the same. The later adds an object to a form and makes it a part of the form. The former only stores a reference to an object in the forms property.

>>>You mean by instantiating the object as the following?
>>>
>>>thisform.MyObject = newobj("MyObjectClass","ClassLib")
>>>
>>
>>
>>yes - or -
>>
>>this.NewObject('MyObject', "MyObjectClass", "ClassLib")
>>
>
>Thank you, Gregory. This is what I will have to do. The only downside of this method (not a big deal though) is that I have to set all properties in code, instead of visually. Also, I have to set the object to NULL in the UNLOAD whereas if you drop the object it is destroyed automatically.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform