Reads the contents of a Table into an array.
#include <IE.au3>
_IETableWriteToArray(ByRef $o_object [, $f_transpose])
| $o_object | Object variable of an InternetExplorer.Application, Table object |
| $f_transpose | [optional] Boolean value specifying whether to swap the rows and columns in the output array |
| Success: | Returns a 2-dimensional array containing the contents of the Table |
| 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 |
; *******************************************************
; Example 1 - Open a browser with the table example, get a reference to the second table
; on the page (index 1) and read its contents into a 2-D array
; *******************************************************
#include <IE.au3>
Local $oIE = _IE_Example("table")
Local $oTable = _IETableGetCollection($oIE, 1)
Local $aTableData = _IETableWriteToArray($oTable)
; *******************************************************
; Example 2 - Same as Example 1, except transpose the output array and display
; the results with _ArrayDisplay()
; *******************************************************
#include <IE.au3>
#include <Array.au3>
$oIE = _IE_Example("table")
$oTable = _IETableGetCollection($oIE, 1)
$aTableData = _IETableWriteToArray($oTable, True)
_ArrayDisplay($aTableData)