data.clearGrid
Clears an empty 2D array (grid) of all data and sets the rows and columns counts to 0.
cells 2D array (in format [yRow][xCol])
none
local cells = data.createGrid()
data.setCell(cells, 0, 0, "Hello")
data.setCell(cells, 1, 0, "World")
print("Cells before clearing values:")
data.printCell(cells, 0, 0)
data.printCell(cells, 1, 0)
data.clearGrid(cells)
print("Cells after clearing values:")
data.printCell(cells, 0, 0)
data.printCell(cells, 1, 0)
Generated on the 26 June 2024 at 22:01:27 (UK Time)