caeanis Posted December 10, 2007 Posted December 10, 2007 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 Quote
Administrators PlausiblyDamp Posted December 10, 2007 Administrators Posted December 10, 2007 You could loop over the items in the first array and do an Array.Index of against the other array until a match isn't found. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
caeanis Posted December 11, 2007 Author Posted December 11, 2007 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.