html5 - Assign the VB6.0 Combo box value to Html drop down from vb 6.0 Code -
i have html form having dropdown controls on it. want select combo box text vb6.0 form , combo box text assign html drop down, how can this?.
my vb6.0 having same controls on html form.
for example html code
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>test application</title> </head> <body> title : <select name="ddltitle" id="ddltitle" style="width: 70px;"> <option value="mr.">mr.</option> <option value="mrs.">mrs.</option> <option value="baba">baba</option> <option value="baby">baby</option> </select><br /> </body> </html>
for vb6.0 try code getting id of drop down want assign value html dropdown box vb6.0 combo box
dim htmli htmlinputelement each htmli in targetie.document.getelementsbytagname("select") select case htmli.id case "ddltitle" dim integer = 0 combo1.listcount if combo1.listindex = htmli.item(i).index htmli.item(i).value = combo1.text exit end if next end select next htmli
while using htmli.value give me error object doesn't support property or method. instead of value need try.. vb6.0 combo value assign html drop down
you'll want use nodevalue
instead of value
. so:
htmli.item(i).value = combo1.text
should be:
htmli.item(i).nodevalue = combo1.text
Comments
Post a Comment