Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying property values from one object to another
Message
De
15/12/1999 21:04:31
 
 
À
15/12/1999 20:59:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00303863
Message ID:
00304479
Vues:
29
I don't think that there's a way. The objects created with SCATTER NAME don't even have a name property, and don't have an AddProperty method. To create an object with CREATEOBJECT or ADDOBJECT, you have to specify a class, and these objects are not deerived from any class. Interesting though, they can be passed through the COM interface (like returned from a VFP COM object to an ASP).



>Just for interest, I've been playing with the classes created by..
>SCATTER NAME
>The object so created doesn't have a baseclass, class etc. Just the user defined properties. NICE.
>However the only way I can figure to create one of these beasties is via the SCATTER NAME approach. Is there any other way? Anyone?
>So I pass this classless class as a parameter to my "observer" class in the init event. The "observer" updates it's properties *quickly* and easily then from the class that it's observing (usually a form).
>
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform