for each loop example

  • Thread starter Thread starter Andy B
  • Start date Start date
A

Andy B

does anybody have a simple example of a for each loop using an
HtmlElementCollection?
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top