A Andy B Oct 16, 2008 #1 does anybody have a simple example of a for each loop using an HtmlElementCollection?
F Family Tree Mike Oct 16, 2008 #2 The MSDN documentation for the class has an example. http://msdn.microsoft.com/en-us/library/system.windows.forms.htmlelementcollection.aspx
The MSDN documentation for the class has an example. http://msdn.microsoft.com/en-us/library/system.windows.forms.htmlelementcollection.aspx
C Cor Ligthert[MVP] Oct 16, 2008 #3 Andy, Why are you simple ignoring my advice and try to get an complete example in an easy way like you think it should be done. I wrote you why it won't go in the way you are doing it, but you are simple ignoring that. Cor
Andy, Why are you simple ignoring my advice and try to get an complete example in an easy way like you think it should be done. I wrote you why it won't go in the way you are doing it, but you are simple ignoring that. Cor
G Göran Andersson Oct 16, 2008 #4 Andy said: does anybody have a simple example of a for each loop using an HtmlElementCollection? Click to expand... Dim items as HtmlElementCollection = Me.Browser.Document.GetElementsByTagName("ul").Item(0).GetElementsByTagName("li") For index = 0 to items.Count - 1 NoteList.Items.Add(items.Item(index).InnerText) Next
Andy said: does anybody have a simple example of a for each loop using an HtmlElementCollection? Click to expand... Dim items as HtmlElementCollection = Me.Browser.Document.GetElementsByTagName("ul").Item(0).GetElementsByTagName("li") For index = 0 to items.Count - 1 NoteList.Items.Add(items.Item(index).InnerText) Next