make a loop from 1 to 1000. start reading a cell in the table of the first row and a column from the loop 1 to 1000. if there is an error reading a given cell, it means that the number of columns in the table is the value of the loop minus 1
a bit of a weird question. When you create a table, you specify how many columns it should have. you also know how many rows you are throwing into the table.
I think, i have to prepare the map with table parameters: id, title, rowcount, columncount... That must be always in the .Tag of each table, filled during the table creation...
But if you create a dynamic table, you can store the size of the row and column table in some variable: list or map. It is 1000 times faster to read the size of a dynamic table from a variable than to read the size of a table like I gave you.