How to get the item count of the row in each loop of For each row?

like this! ↓ ↓ ↓ ↓ ↓ ↓

I want to use Item.ItemArray() to get every item in each row, but I don’t know how many items will be in each row…

Give item.tostring() in write line or message box

name = row(“Name”).tostring.count

1 Like

To get count of columns, no need to use for each row. In writeline, just give the below code.

TestTable.columns.count.tostring

If you just need to see all the values in datatable, Use output datatable activity. :slightly_smiling_face:

2 Likes

Got it.

Hi @Nivetha

If you have an Int variable, you can simply do an Assign activity, like so:

i = i + 1
1 Like