Counting Table Columns

For some reason I cannot find anything that tells me how to count the number of columns in a table, only rows. Any suggestions?

In script or expression?
In sql table or dataset?

Which would be more efficient or can you point me to where I can find examples because the Ignition manual, forum and youtube do not have any specific examples.

dataset.columnCount?

https://docs.inductiveautomation.com/display/DOC81/Datasets

"Googling the docs" instead of searching within the docs always produce better results, IMO.

1 Like

You are my hero, buy yourself something nice for Christmas! I have to remember to limit my search criteria sometimes.