Is it possible to duplicate a static object with it's contents.  I don't
want 2 pointers to the same object.

Say I have an object defined like this:

type TTest = class
  TestName: String;
  TestArray: Array of Real;
  TestList: TStringList;
end;

var Test,Test2: TTest;

Later a TTest is created and assigned to Test and data allocated to the
fields.  Is there a simple way of duplicating the data and assigning it to
Test2 without having to copy each field separately?

Cheers,
Ross.
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to