troubleshooting Question

WebBrowser and parsing select list

Avatar of Preece
PreeceFlag for United States of America asked on
Visual Basic Classic
19 Comments1 Solution378 ViewsLast Modified:
I am using VB 6 and the MSHTML Object Lib.  So, I have a WebBrowser object bolted into a VB form, I can browse to a site, but I need to know how to parse some info:

-  I have a select list (like a listbox in VB!) filled with a list of items, and I would like to be able to loop thru each item in the list.  When I get a match on what particular item i am looking for, then I would like to set the index and show it as selected.  Just like I can easily do in VB!  Here is an example of the select object:

<select name="numlist" size=7>
<OPTION VALUE="ONE" SELECTED>1 . ONE
<OPTION VALUE="TWO">2 . TWO
<OPTION VALUE="THREE">3 . THREE
<OPTION VALUE="FOUR">4 . FOUR
<OPTION VALUE="FIVE">5 . FIVE
</select>

Thanks in advance,
Preece
ASKER CERTIFIED SOLUTION
Richie_Simonetti
IT Operations

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 19 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 19 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros