how I can compare each row of 2D array with 1d array in order to insert 1D array if it is not found in 2D array if my 2d array is like {{3,7,9},{1y ,8,6}} and my 1d array for example {3,7,9},how I can know if it's already there ,my code below insert 1d array at a time to 2d array ,I tried to use .equal but it doesn't work
Private Sub Add_Item_Array_2D2(ByRef Array_2D As Double(,), ByVal d As Integer,
ByVal Items As Double())
Dim tmp_array(Array_2D.GetUpperBound(0) + d, Array_2D.GetUpperBound(d)) As Double
For n As Integer = 0 To Array_2D.GetUpperBound(0)
For m = 0 To Array_2D.GetUpperBound(1)
Dim pp = (Array_2D(n, m)).Equals(Items)
If pp = False Then
For x As Integer = 0 To Array_2D.GetUpperBound(0)
For k = 0 To Array_2D.GetUpperBound(1)
tmp_array(x, k) = Array_2D(x, k)
Next
Next
For j = 0 To Items.Count - 1
tmp_array(tmp_array.GetUpperBound(0), j) = Items(j)
Next
Array_2D = tmp_array
End If
Next
Next
End Sub