Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying property values from one object to another
Message
From
15/12/1999 21:04:31
 
 
To
15/12/1999 20:59:39
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00303863
Message ID:
00304479
Views:
32
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform