c# - Index cannot be 3, only 0 or 1 -
This error code does not prevent it from running, but I would like to fix it. Here is the code, error appears under thanks this Returns an array of tables, this array has only 2 items, so your index can only be 0 or 1. You can not w [3] because your array does not have 4th element. HtmlElementCollection rows = Y [3]. Get Elementsbaigenem ("tr"); Any information will be appreciated.
doc.LoadHtml (content); Binding source datasource = new binding source (); Binding source data2 = new binding resource (); HtmlElementCollectionY = Web Browser 1 Document. GetElementsByTagName ("Table"); {HtmlElementCollection Rows = Y [3] .GetElementsByTagName ("tr");
< Code> HtmlElementCollection Y = Web Browser 1. Document. GetElementsByTagName ("Table");
Comments
Post a Comment