data.getGridRowsCount
Get the number rows (records) in a 2D array (grid).
grid 2D array (in format cells[yRow][xCol])
rowsCount integer
local cells = data.createGrid()
data.setCell(cells, 3, 9, "Hello")
data.setCell(cells, 4, 9, "World")
local rowsCount = data.getGridRowsCount(cells)
print("Rows count: " .. rowsCount)
If using a grid returned by data.loadCsv the first row may contain column header names.
Generated on the 26 June 2024 at 22:01:28 (UK Time)