Returns the value of a given Form Element.
#include <IE.au3>
_IEFormElementGetValue ( ByRef $o_object )
Parameters
$o_object | Object variable of an InternetExplorer.Application, Form Element object |
Return Value
Success: | Returns the string value of the given Form Element |
Failure: | Returns 0 and sets @ERROR |
@Error: | 0 ($_IEStatus_Success) = No Error |
3 ($_IEStatus_InvalidDataType) = Invalid Data Type | |
4 ($_IEStatus_InvalidObjectType) = Invalid Object Type | |
@Extended: | Contains invalid parameter number |
Remarks
See remarks for _IEFormElementSetValue.
Related
_IEFormElementSetValue, _IEFormElementGetCollection, _IEFormElementGetObjByName, _IEFormElementOptionSelect, _IEFormElementCheckboxSelect, _IEFormElementRadioSelect
Example
; *******************************************************
; Example 1 - 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>
$oIE = _IE_Example ("form")
$oForm = _IEFormGetObjByName ($oIE, "ExampleForm")
$oText = _IEFormElementGetObjByName ($oForm, "textExample")
$IEAu3Version = _IE_VersionInfo ()
_IEFormElementSetValue ($oText, $IEAu3Version[5])
MsgBox(0, "Form Element Value", _IEFormElementGetValue ($oText))