Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object replication
Message
From
18/04/2005 13:29:59
 
 
To
18/04/2005 11:27:37
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01005809
Message ID:
01005866
Views:
24
>Hope this is not a misnomer.
>
>When I drag an object from one container to another, I need to remove the original object and create a new one in the new container, right?
>
>The dragged object has a few properties set. I'd like the new object to get those same settings.
>
>Is there a generic way to cycle through all props and set OBJ2 the same as OBJ1 was? Both objects are from the same class, obviously.

If I understand your question correctly, you can set all but the read-only properties to match. Use AMEMBERS() to get a list of the PEMs of each object. Then loop through the list.

I know I've written about this in FoxPro Advisor. I think my 8/2002 article on building your own builders has an example.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform