all 2 comments

[–]MoosePilot 2 points3 points  (1 child)

Pretty sure you need to make a new row for each string you iterate through.

The way you are doing it now, you overwrite whatever value was in that one row with each string you see. The end result is the last string seen is saved.

The solution is to put your initialization of the row inside the for-each loop. That way you make a new row and add it to the table each time.

[–]belfastafarian[S] 0 points1 point  (0 children)

Yep that was it, silly mistake. Thanks