data.getCell
Get a cell string value within a 2D array (grid) returned from data.loadCsvFile or data.runSelectQuery etc.
grid 2D array (in format cells[yRow][xCol])
xCol integer (one-based X/column index)
yRow integer (one-based Y/row index)
cellValue string (returns empty string if cell is invalid or empty)
local cells = data.runSelectQuery("SELECT [LocationName] from [ItemLocations]")
local locationName = data.getCell(cells, 0,0)
print(locationName)
Generated on the 26 June 2024 at 22:01:28 (UK Time)