HTA/VbScript - If statement from Dropdown list choice -


in hta using vbscript trying read choice dropdown list run specific code each choice.

i've been poking around looking method use value of dropdown list run specific vbscript subroutine have not found helpful in search. code below work displays message box choice listed. pointers extremely appreciated!!

<select name="buildstepchoice" size="1">  <option selected="selected" value=" "></option>  <option value="1">1</option>  <option value="2">2</option> </select> &nbsp; 

and vbscript

sub copychecklist() dim vmbuildstep vmbuildstep = document.getelementbyid("buildstepchoice").value  if vmbuildstep = 1 msgbox "picked #1" else  if vmbuildstep = 2 msgbox "picked #2" end if end sub 

not sure picked up, ended with.

sub copychecklist()  dim vmbuildstep  vmbuildstep = document.getelementbyid("buildstepchoice").value   if (isnumeric(vmbuildstep))   vmbuildstep = int(vmbuildstep)   if (vmbuildstep >= 1 , vmbuildstep <= 17) createfile(vmbuildstep)  end if             end sub 

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -