Function Reference


Returns the value of a given Form Element

#include <IE.au3>
_IEFormElementGetValue ( ByRef $oObject )


$oObject Object variable of an InternetExplorer.Application, Form Element object

Return Value

Success: the string value of the given Form Element.
Failure: sets the @error flag to non-zero.
@error: 2 ($_IEStatus_COMError) - COM Error in Object reference
3 ($_IEStatus_InvalidDataType) - Invalid Data Type
4 ($_IEStatus_InvalidObjectType) - Invalid Object Type
@extended: Contains invalid parameter number


See remarks for _IEFormElementSetValue().


_IEFormElementCheckBoxSelect, _IEFormElementGetCollection, _IEFormElementGetObjByName, _IEFormElementOptionSelect, _IEFormElementRadioSelect, _IEFormElementSetValue


; Open a browser with the form example, set the value of a text
; form element, retrieve and display the value from the element

#include <IE.au3>
#include <MsgBoxConstants.au3>

Local $oIE = _IE_Example("form")
Local $oForm = _IEFormGetObjByName($oIE, "ExampleForm")
Local $oText = _IEFormElementGetObjByName($oForm, "textExample")
Local $aIEAu3Version = _IE_VersionInfo()
_IEFormElementSetValue($oText, $aIEAu3Version[5])
MsgBox($MB_SYSTEMMODAL, "Form Element Value", _IEFormElementGetValue($oText))