Reset a specified Form.
#include <IE.au3>
_IEFormReset ( ByRef $o_object )
Parameters
$o_object | Object variable of an InternetExplorer.Application, Form object |
Return Value
Success: | Returns 1 |
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
None.
Related
_IEFormSubmit, _IEFormGetObjByName, _IEFormGetCollection
Example
; *******************************************************
; Example 1 - Open a browser with the form example, fill in a form field and
; reset the form back to default values
; *******************************************************
;
#include <IE.au3>
$oIE = _IE_Example ("form")
$oForm = _IEFormGetObjByName ($oIE, "ExampleForm")
$oText = _IEFormElementGetObjByName ($oForm, "textExample")
_IEFormElementSetValue ($oText, "Hey! It works!")
_IEFormReset ($oForm)