_IEFormElementGetCollection
Returns a collection object variable representing all Form Elements within a given Form.
#include <IE.au3>
_IEFormElementGetCollection(ByRef $o_object [, $i_index = -1])
Параметры
| $o_object | Переменная объекта InternetExplorer.Application, Form object |
| $i_index |
[необязательный] specifies whether to return a collection or indexed instance 0 or positive integer returns an indexed instance -1 = (по умолчанию) returns a collection |
Возвращаемое значение
| Успех: | Возвращает an object variable containing the Form Elements collection, @extended = form element count |
| Ошибка: | Возвращает 0 и устанавливает @error |
| @error: | 0 ($_IEStatus_Success) = Нет ошибок |
| 3 ($_IEStatus_InvalidDataType) = Неверный тип данных | |
| 4 ($_IEStatus_InvalidObjectType) = Неверный тип объекта | |
| 5 ($_IEStatus_InvalidValue) = Неверное значение | |
| 7 ($_IEStatus_NoMatch) = Нет совпадений | |
| @extended: | Содержит номер неверного параметра |
См. также
_IEFormElementGetObjByName, _IEFormElementGetValue, _IEFormElementSetValue, _IEFormSubmitПример

; *******************************************************
; Пример 1 - Get a reference to a specific form element by 0-based index.
; In this case, submit a query to the Google search engine
; *******************************************************
#include <IE.au3>
$oIE = _IECreate ("http://www.google.com")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 2)
_IEFormElementSetValue ($oQuery, "AutoIt IE.au3")
_IEFormSubmit ($oForm)