Hi, I don't have time to test your script but at first glance I can see a couple of issues:
1) You do not define the table to be used by your script
2) Your call of "ncol" does not refer to any data table
3) You do not define the variable "Result" which you use as an array
4) Reference to a specific column content with "Column (ColumnName [i])" is not likely to work, maybe trying something like just "column[i]" might work better
5) Your assignment to "ColumnData" is not likely to work as you want because you are not appending each column content to the variable "ColumnData"
Thierry R. Sornasse