Sign in to follow this  
Followers 0
Prodigy

Finding whats in a cell of an array

7 posts in this topic

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...

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

consolewrite($aTableData[3][1])

Edited by picea892

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
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)

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Ok, thanks guys :(

Works like a charm now

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  
Followers 0