I am suppose to check some numbers from a website against an Excel file. It is not allways the same number of fields, but I know the length so I am able to create the array. I am scraping data from the website 2 times, first time the headers and second time the result numbers (into 2 different datatables). Afterwards I create the multidimensional (2 columns) array with the data from the 2 datatables. Now I want to check if a header text exist in the array (first column) and then get the result (second column) but I can’t figure out the syntax (see failing if statment)!
thank you for your answer, and you might be right but I can’t find that much about the use of Dictionary, and in video 3.4 Data Manipulation they mention it is when extracting data from Orchestrator queues. I was thinking I could create my own dataTable instead of the array and then use .select(where clause) but for now I’ll wait and see if there is anybody who can help my like it is.
@Claus
Merge Two Columns into a Single DataTable dta
Dictionaryabc= (From p In dta.Select
Select p).ToDictionary(Function(x) x(“Headers”).ToString, Function(x) x(“Total”).ToString)
Now you can acess the amount based on Key that is headers.
I have not tested the code. sorry if it throws any exception