Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy an Object
Message
From
16/07/2006 05:30:03
 
 
To
15/07/2006 18:49:14
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01136724
Message ID:
01136760
Views:
10
>
>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?

You cannot clone an object in VFP.
Previous
Reply
Map
View

Click here to load this message in the networking platform