A simple text box. The default value is set by the HTML source.

I would like to read the VALUE, but you will see that the $e.value() writes to it instead. I have tried CheckBoxes too, and the Checked parameter writes. I am looking for the reading command.

code:

break on cls
$html='<html><INPUT id=Status1 value="hello"></html>'


; create HTML file
$=redirectoutput("@curdir\3t.htm", 1) $html ? $=redirectoutput("")


; open IE
$ie=createobject("internetexplorer.application")


; Set properties and display form ...
$ie.addressbar="0"
$ie.menubar="0"
$ie.toolbar="0"
$ie.statusbar="0"
$ie.resizable="0"
$ie.height=440
$ie.width=380
$ie.visible="true"


; open HTML file
$ie.navigate("@curdir\3t.htm") while $ie.busy<>0 and @error=0 loop


; get document handle
$doc=$ie.document
"$$doc is type " vartypename($doc) ?


; get element handle
$e=$doc.GetElementById("status1")
"$$e is type " vartypename($e) ?


"paused..." get$


; display element value
$e.value() ?


cj