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
batoolhussain 0
Light Poster
Recommended Answers
Jump to PostMake 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 …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.