'
' SelectHTMLItemByValue - selects an item in a Combobox/Listbox within a Web page.
' This undocumented function is like SelectHTMLItem(), except
' that it selects by value rather than item text.
'
' Author: Joe Strazzere
'
'
' ret=SelectHTMLItemByValue(<html_descriptor>,item$[,shift|ctrl])
'
' go to http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_option
'
' Paste in the following, and click "Edit and Click Me >>":
' <html>
' <body>
' <select name="MySelect" size=4 multiple="multiple">
' <option value="a">Volvo</option>
' <option value="b">Saab</option>
' <option value="c">Mercedes</option>
' <option value="d">Audi</option>
' </select>
' </body>
' </html>
'
' Then run this script
'
UsePage("Tryit Editor v1.4")
SelectHTMLItemByValue("SELECT[NAME= 'MySelect']", "a")
SelectHTMLItemByValue("SELECT[NAME= 'MySelect']", "b", shift)
SelectHTMLItemByValue("SELECT[NAME= 'MySelect']", "d", ctrl)