Jump to content
Sign in to follow this  
arjun07

IE - Fetch values from table, _ArrayDisplay not working

Recommended Posts

arjun07

Hi, 

I'm using  autoit-v3.3.13.16 (Beta). 

When I run this code to fetch the table values , I receive "_ArrayDisplay - Unknown Function Name" error.

 
Local $oTable = _IETableGetCollection($oIE, 0)
Local $aTableData = _IETableWriteToArray($oTable)
_ArrayDisplay($aTableData)
 
 
I also tried to get the table size (via trial and error) and print out some values but got the following error: Error: Array variable has incorrect number of subscripts or subscript range exceeded.  It would be great if you can point out where I'm wrong.
 
 
If IsArray($aTableData) Then
    For $i = 1 To UBound($aTableData, 0)
        ConsoleWrite("Dimension: " & $i & " :" & UBound($aTableData, $i) & @LF)
    Next
EndIf

 

I'm attaching the html code and highlighted the values I need to capture. Thanks

 

post-87076-0-55588600-1408397358_thumb.p

Share this post


Link to post
Share on other sites
kylomas

arjun07,

The following works for me...

#include <ie.au3>
#include <array.au3>

local $oie = _iecreate('www.scoresandodds.com',0,0)

Local $oTable = _IETableGetCollection($oIE, 0)
Local $aTableData = _IETableWriteToArray($oTable)
_ArrayDisplay($aTableData)

Run log...

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "C:\Users\ADMIN010\Desktop\ie test.au3" /UserParams    
+>17:51:20 Starting AutoIt3Wrapper v.2.2.0.3 SciTE v.3.4.1.0   Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0409)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\ADMIN010\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\ADMIN010\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.13.16)  from:C:\Program Files (x86)\AutoIt3\Beta  input:C:\Users\ADMIN010\Desktop\ie test.au3
+>17:51:21 AU3Check ended.rc:0
>Running:(3.3.13.16):C:\Program Files (x86)\AutoIt3\Beta\autoit3.exe "C:\Users\ADMIN010\Desktop\ie test.au3"    
--> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop
+>17:51:29 AutoIt3.exe ended.rc:0
+>17:51:29 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 8.996

kylomas

Edited by kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×