hallikpapa
asked on
Add data to an ArrayCollection
I have two array collections, and they both have a field in common: sourceCode
I would like to push the data from the 2nd into the first. What's the best way to accomplish this?
I would like to push the data from the 2nd into the first. What's the best way to accomplish this?
ASKER
Thanks. So would I use a cursor on ac1, and then loop through ac2, and when there is a match on the sourceCode on ac1 == ac2, push ac2 into ac1 on that index...somehow?
Mind showing an example? In my scenario, ac2 will have a lot more sourceCode(s) than ac1. So I only want to push it if there is a match.
Mind showing an example? In my scenario, ac2 will have a lot more sourceCode(s) than ac1. So I only want to push it if there is a match.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window