Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where object dropped on form is instantiated?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01450463
Message ID:
01450477
Vues:
51
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform