Jury Posted May 28, 2015 Posted May 28, 2015 (edited) And I thouhgt this woul be a simple one but it doesn't work - comes back with: Array variable has incorrect number of subscripts or subscript dimension range exceeded.:ConsoleWrite($h & ' ' & $aTableData[$h] & @CRLF)ConsoleWrite($h & ' ' & ^ ERROR#include <IE.au3> #include <Array.au3> $oIE = _IECreate("www.dfa.ie/our-role-policies/international-priorities/international-law/find-a-treaty/treatyresults/?bilat_multilat=&search_depository=&its_no_1=&its_no_2=&search_keywords_title=&search_party=&year_search=2010", 0, 0) $oTable = _IETableGetCollection($oIE, 0) $aTableData = _IETableWriteToArray($oTable,True) _ArrayDisplay($aTableData) For $h = 0 To UBound($aTableData) - 1 ConsoleWrite($h & ' ' & $aTableData[$h] & @CRLF) Next _IEQuit($oIE) Edited May 28, 2015 by Jury
Jury Posted May 28, 2015 Author Posted May 28, 2015 (edited) sorry brain freeze - its a 2D array! shish -$oIE = _IECreate("www.dfa.ie/our-role-policies/international-priorities/international-law/find-a-treaty/treatyresults/?bilat_multilat=&search_depository=&its_no_1=&its_no_2=&search_keywords_title=&search_party=&year_search=2010", 0, 0) $oTable = _IETableGetCollection($oIE, 0) $aTableData = _IETableWriteToArray($oTable, True) _ArrayDisplay($aTableData) For $x = 0 To UBound($aTableData, 1) - 1 ; first dimension of array For $y = 0 To UBound($aTableData, 2) - 1 ; second dimension of array ConsoleWrite($x & '_' & $y & ' ' & $aTableData[$x][$y] & @CRLF) Next ConsoleWrite(@CRLF) ; new line for next row Next Edited May 28, 2015 by Jury
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now