Jump to content

Finding whats in a cell of an array


Recommended Posts

Hi,

What I'm trying to do is read a certain value in a table on a site,

I got as far as getting the table with the value in it, into an array.

#include <IE.au3>
#include <Array.au3>
$oIE=_IECreate("Site")
$oTable = _IETableGetCollection ($oIE, 14)
$aTableData = _IETableWriteToArray ($oTable, True)
_ArrayDisplay($aTableData)

Now I wish to read a value in lets say row 3 of column 1.

I thought there would be a simple command like "_ArrayRead(3,1) returning the value in that cell, but it seems there isn't.

Theres probably something stupid I'm overlooking, but I can't seem to find how to do this... :(

Thanks in advance,

Any help is appreciated...

Link to comment
Share on other sites

Hmm, this really only gives me the number of characters in the cell :(

Then that's what is in the cell.

Edit: Just look at the _ArrayDisplay and you would see it's the same.

Edited by AdmiralAlkex
Link to comment
Share on other sites

Not really

This is what is says under consolewrite in the helpfile:

Return Value

The amount of data written. If writing binary, the number of bytes written, if writing text, the number of characters written.

Nevermind though, I've got it

I added

clipput($aTableData[3][1])  
$Cell=clipget()  
msgbox(0,"test","Output: "&$cell)
Link to comment
Share on other sites

That doesn't make the slightest sense. Remove the clipboard stuff and do it right.

MsgBox(0,"test","Output: " & $aTableData[3][1])

Or

ConsoleWrite("Output: " & $aTableData[3][1])

Both will show you the same string as _ArrayDisplay, just in different ways.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...