for each loop example

  • Thread starter Thread starter Andy B
  • Start date Start date
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 said:
does anybody have a simple example of a for each loop using an
HtmlElementCollection?

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
 
Back
Top