# How to get table cell one by one?

Go to solution Solved by AlessandroAvolio,

## Recommended Posts

Hello.

I have IETable,

Get by this code

```\$oTable = _IETableGetCollection (\$oIE, 1)
\$aTableData = _IETableWriteToArray (\$oTable)

Local Const \$iArrayNumberOfCols = UBound(\$aTableData, \$UBOUND_COLUMNS)
Local Const \$iArrayNumberOfRows = UBound(\$aTableData, \$UBOUND_ROWS)
Local \$aArraySubstringsRow[\$iArrayNumberOfCols]

;~ Local \$aExtract = _ArrayExtract (\$aTableData, 1, 1, 1, -1)
;~ MsgBox(0, "", \$iArrayNumberOfCols)

;~ _ArrayDisplay(\$aExtract)
Local Const \$iArrayRowIndex = 1

Local \$sSubstring

For \$i = 0 To \$iArrayNumberOfCols - 1
\$sSubstring = StringLeft(\$aTableData[\$iArrayRowIndex][\$i], 2)
\$aArraySubstringsRow[\$i] = \$sSubstring
Next

_ArrayDisplay(\$aArraySubstringsRow, "This is a row")```

and i want to use cell (52, 82, 18, 9,...10) one by one for selecting dropdown box in internet explorer.

So, How to show/get/extract cell one by one (in msgbox)?

##### Share on other sites

• Solution

You need basic concept of "accessing data in array": https://www.autoitscript.com/wiki/Arrays#Accessing_Data_in_Arrays

```Local \$aArray[3] = [1, 2, 3]

For \$i = 0 to Ubound(\$aArray) -1
msgbox(0, "", \$aArray[\$i])
Next```

## Create an account

Register a new account

• ### Similar Content

By hennenzac,

• 4 replies
• 948 views
• #### [SOLVED] - How to tick the checkbox in the table (Internet Explorer)

By phoenixhuynh09,

• 732 views
• #### Getting info from a website with arrays and table read (Optimize my code)

By JackER4565,

• 2 replies
• 1,510 views
• #### Google Translator isn't able to get text from _IEFormElementSetValue

By soft4pedia,

• 0 replies
• 872 views
• #### Intro story and asking for an Excel UDF example

By Jemboy,

• 12 replies
• 2,140 views
×

• Wiki

• Back

• #### Beta

• Git
• FAQ
×
• Create New...