Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
6/18/2008 7:11:05 AM EDT
I have a 2D Array that I need to search for Duplicates.

TAG1        TAG2           S/N
-----------------------------------
BLAH1    BLAHBLAH2    SN12
BLAH2    BLAHBLAH3    SN13
BLAH3    BLAHBLAH5    SN13

Basically, I want to be able to search the serial number column for duplicates, and then return the Tag1 and Tag2 columns for the pair where the duplicate is found.

I've never tried doing this with a 2D array so I don't even know where to begin.

Point me in the right direction?

Thanks.
6/18/2008 1:04:33 PM EDT
[#1]
Well, from a the search requirements and they data to be searched, the number of dimentions means nothing. it is still a "classic" search of a 1 dimentional array.

just coded the subscript correctly. for each entry in array at (a, 2)