|
-
Re: Copy/Duplicate Arrays
try
array2=3Darray1.clone
steve
"David Gaines" <dgaines@atlanticappraisal.com> wrote in message =
news:3dad5c3c$1@tnews.web.devx.com...
Greetings,
I need to replicate an array, but do not want the new array to reference =
the
original array's memory location. In other words, I need a completely
separate, exact copy of the original array so that I can manipulate its
elements without impacting the original array elements.
I have tried Array.Copy, but that seems to just point the new array's
elements to the memory location of the original array's elements. Is =
there a
way to create a clean, new copy of an existing array?
Thanks,
Dave Gaines
--
Regards,
Dave Gaines
dgaines@atlanticappraisal.com
Associate Appraiser
Atlantic Appraisal Company, Inc.
2355 Huguenard Drive, Suite 202
Lexington, KY 40503
(859) 273-2060, x238
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks