Re: Why can't I copy a collection class from one instance to another?
- From: "Albert D. Kallal" <kallal@xxxxxxx>
- Date: Tue, 18 Apr 2006 08:47:47 GMT
if this is common to classes in otherprogramming environments.
Yes, it is common to true object programming environments. You often have to
still write a clone method, but the properties and methods of the object
*usually* can be un-corked out to a serialized string that can be saved (in
fact, we call this serialization). It is this "string" of data that can
then be loaded back into the object.
This gives two benefits.
you can actually "save" the state of the object to your hard disk..and
next time you run the program...re-load the object. Thus, you can actually
use objects, and save them to a database, or even a file on hard disk.
The side benefit of this serialization process is that the code to clone
a object his thus very easy to write....
And, even more important, with web based services...you can *transfer* a
object across the connection this way.
So, if the language at hand does not support clone of the object (not all
do), but does support what we call serialization, then cloning is easy
anyway...
We have neither clone, nor serialization available in VB, or ms-access,
which by the way is the same as VB6...
You do have serialization in vb.net however.....
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@xxxxxxx
http://www.members.shaw.ca/AlbertKallal
.
- References:
- Why can't I copy a collection class from one instance to another?
- From: downwitch
- Re: Why can't I copy a collection class from one instance to another?
- From: Terry Kreft
- Re: Why can't I copy a collection class from one instance to another?
- From: Albert D. Kallal
- Re: Why can't I copy a collection class from one instance to another?
- From: downwitch
- Why can't I copy a collection class from one instance to another?
- Prev by Date: Re: expose class modules of a referenced mde
- Next by Date: Re: Why can't I copy a collection class from one instance to another?
- Previous by thread: Re: Why can't I copy a collection class from one instance to another?
- Next by thread: Re: Why can't I copy a collection class from one instance to another?
- Index(es):
Relevant Pages
|