data.createGrid
Description
Create an empty 2D array (grid) in the same format returned by loadCsvFile and runSelectQuery etc.

Parameters
none

Return value
cells 2D array (in format [yRow][xCol])

Example
-- create empty grid
local cells = data.createGrid()

-- add 2 cell values to grid (grid is automatically resized to 2 cols by 5 rows)
data.setCell(cells, 1, 5, "Hello")
data.setCell(cells, 2, 5, "World")

-- show the values
data.printGrid(cells)

Comments

See also
data.getCell
data.setCell

Back
Generated on the 26 June 2024 at 22:01:27 (UK Time)