troubleshooting Question

Problem with using system.collections.arraylist()

Avatar of mightofnight
mightofnightFlag for United States of America asked on
Visual Basic.NET
9 Comments2 Solutions370 ViewsLast Modified:
I am trying my first VB project using multidimensional arrays (and i admit i am struggling)

I have figured out about 4 different methods and decided to use the system.collections.arraylist() cause it's simple and thats fits plan of my project.

I am down to this one problem..

(Here is a sniplit of code where i am confused)


The problem is that i add an array element using the variable aRowArray and then try to clear it after it is added so that i can rebuild it again. (it's part of a loop)

anyway when i do the clear it also clears out the original value from the strRegistryArray.  I now this is a byRef and byValue thing but i just don't know how to get around it.

Thanks for any help!

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros