hi everyone. I have two array, array1 is two dimension and array2 is one dimension. I want to compare each number in array1 to array2 and if the number is not existing in array2 i want to add this number to array2. I am using vb.net2010. please help me
Jump to Post
Make two nested loops, 1st loop to go through Array1 and 2nd loop to go through Array2 for comparing.
For i as Integer = 0 to Array1.GetUpperBound(0) Dim comp As Boolean = False For j as integer = 0 to Array2.GetUpperBound(0) If Array2(j)=Array1(i) Then comp = True Exit For …
All 2 Replies
We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.