Comparing 2 arrays for a unique number

caeanis

Freshman
Joined
Sep 6, 2006
Messages
40
That probably isn't worded right, but say I have 2 array, one holds 4 numbers (1 - 4)
The other Array has 3 numbers which range from 1 - 4. How can I scrub against the first list to find out which number the second array doesn't have?

I figured a for next loop but I can wrap my head around how to pull out the number that isn't matched...

Marc
 
I figured out a way, thanks Plause!

I looped through one array nested inside the first. If I found a match I set the value in the in the first array to zero. I then looped through the first array and pull out the only value greater than zero.

Caeanis
 
Back
Top