# Finding size of table and current row index script

**URL:** <https://forum.inductiveautomation.com/t/finding-size-of-table-and-current-row-index-script/47530>\
**Category:** Ignition\
**Created:** [June 7, 2021, 7:46pm UTC](https://forum.inductiveautomation.com/t/finding-size-of-table-and-current-row-index-script/47530 "2021-06-07T19:46:48Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 7, 2021, 9:16pm UTC](https://forum.inductiveautomation.com/t/finding-size-of-table-and-current-row-index-script/47530/4 "2021-06-07T21:16:44Z")

</div>

@lrose  
I recently found from @JordanCClark’s [post](http://forum.inductiveautomation.com/t/script-to-compare-and-return-dataset-values/47462/8) that you can use `getColumnAsList` to get column data from a table as a list 🙂

From him:

```auto
# Get column names. Coerce it to a list to use the same names in the new dataset.
headers = list(dataIn.getColumnNames())

# Get tag paths as a list
tagList = dataIn.getColumnAsList(headers.index('InterlockedTags'))

```

(thanks Jordan - post added to my ignition goodies collection 😁)

---

_[View the full topic](https://forum.inductiveautomation.com/t/finding-size-of-table-and-current-row-index-script/47530)._
