Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy an Object
Message
From
15/07/2006 18:49:14
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Copy an Object
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01136724
Message ID:
01136724
Views:
51
Object1 = CreateObject("Custom")
Object1.AddProperyt("Test", "Green")
Object 2 = Object1
Object2.Test = "Red"
?Object1.Test     && Returns Red not Green

Object 2 = Object1   && apparently doesn't copy the object, it just gives it an additional name.
How can I make an independant copy of Object1?
Next
Reply
Map
View

Click here to load this message in the networking platform