Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying objects
Message
From
20/07/1999 08:35:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
20/07/1999 07:13:01
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00243487
Message ID:
00243515
Views:
19
>Hi all,
>
>Probably a stupid question, but I've created some objects to work with in my App, and now I'd like to write some code that actually copies one object to another. I'd try to do a simple A = B where A is the new initialized object and B is the original one, but that generates an(expected) error message.
>
>Anyone know some code to copy two objects?
>
>Thanks,
>
>Sebastiaan
Sebastiaan,
At designtime you could use cloneobject(). At runtime since you want to copy newly initialized ones, use addobject(). With addobject at the beginning only differing property would be name as it should.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform