Find a Value in Two Dimensional Array on VB.NET
I declared my Array:

    Dim invoice_discountitems(100, 100) As String


Set Values into array:

    For i As Int16 = 0 To data_set.Tables("discount_items").Rows.Count - 1
                            invoice_discountitems(i, 1) = data_set.Tables("discount_items").Rows(0).Item("item_code")
                            invoice_discountitems(i, 2) = data_set.Tables("discount_items").Rows(0).Item("discountitem_average")
                        Next


Now i tryed to find and single value:

    Dim res As String
    res = Array.IndexOf(invoice_discountitems, "FO1506")
    MsgBox(res)

But, i get this error :(

    "Only single dimension arrays are supported here"


Find a Value in Two Dimensional Array on VB.NET
===

I declared my Array:

    Dim invoice_discountitems(100, 100) As String


Set Values into array:

    For i As Int16 = 0 To data_set.Tables("discount_items").Rows.Count - 1
                            invoice_discountitems(i, 1) = data_set.Tables("discount_items").Rows(0).Item("item_code")
                            invoice_discountitems(i, 2) = data_set.Tables("discount_items").Rows(0).Item("discountitem_average")
                        Next


Now i tryed to find and single value:

    Dim res As String
    res = Array.IndexOf(invoice_discountitems, "FO1506")
    MsgBox(res)

But, i get this error :(

    "Only single dimension arrays are supported here"

