How to copy an object in a array?



Hello everybody.

Sorry for my bad english; my mother tongue is french.

I would like to keep a copy of an object in an array.
So, I do, for example:

set array(5) = my_file_object

but this code keeps a reference to this objet, not a copy of the object.

So, if a destroy my_file_object and if a do:

array(5).Delete

to delete my file, it don't work!

How can I keep a copy of my object to be able to do:

array(5).Delete

even if my_file_object is destroyed ?

Thanks a lot for your help.
Alain.


.



Relevant Pages

  • Re: Correctnesses
    ... of Gollum, who was obsessed with his "precious." ... dearth of their own cuddly terms, which destroy all the ... There's also the French "mon petite chou", ...
    (alt.usage.english)
  • Re: Correctnesses
    ... forget "Lord of the Rings" and the favorite term of endearment ... of Gollum, who was obsessed with his "precious." ... dearth of their own cuddly terms, which destroy all the ... There's also the French "mon petite chou", ...
    (alt.usage.english)
  • Re: Error with pointers
    ... Why explicitly initialize the connect array? ... The Delphi help says "Because a constructor ... Free,ie "Free checks for a nil reference before calling Destroy". ...
    (comp.lang.pascal.delphi.misc)
  • Re: Solar breakthrough - when?
    ... Don Lancaster wrote: ... >> Let us propose that we have a large house and a very very large PV array. ... > The bigger the PV array, the more energy you destroy. ... methane, and reform the methane. ...
    (sci.energy.hydrogen)
  • Re: Correctnesses
    ... forget "Lord of the Rings" and the favorite term of endearment ... of Gollum, who was obsessed with his "precious." ... dearth of their own cuddly terms, which destroy all the ... I see what you mean but I'm sure "my little cabbage" sounds romantic to the French. ...
    (alt.usage.english)

Loading