Posted on: 3/24/2015 3:59:04 AM | Views : 842

Hello everyone, I have an issue with this function which keeps returning this error: Expecting 1 value(s) for the key being indexed, but received 2 value(s).
Here is the function I got from this site: https://msdn.microsoft.com/en-us/library/f6dh4x2h(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-2
Here is my function: 
Private Function FindInMultiPKey(ByVal table As DataTable, findTheseValues As Object) As DataRow ' Create an array for the key values to find. Dim findTheseVals(1) As Object ' Set the values of the keys to find. findTheseVals(0) = "8" findTheseVals(1) = "55" Dim foundRow As DataRow = table.Rows.Find(findTheseVals) ' Display column 1 of the found row. If Not (foundRow Is Nothi ...

Go to the complete details ...