Actually, that sorta works, but not really…
What I need is something like a spreadsheet, with several addressable columns, and 50 vertical rows of data.
– define variables
testArray = {
{col1 = “”},
{col2 = “”},
{col3 = “”}
}
testArray[1].col1 = “testing row 1, col 1”
testArray[1].col2 = “testing row 1, col 2”
testArray[1].col3 = “testing row 1, col 3”
testArray[2].col1 = “testing row 2, col 1”
testArray[2].col2 = “testing row 2, col 2”
testArray[2].col3 = “testing row 2, col 3”
testArray[3].col1 = “testing row 3, col 1”
testArray[3].col2 = “testing row 3, col 2”
testArray[3].col3 = “testing row 3, col 3”
testArray[4].col1 = “testing row 4, col 1” – error: attempt to index field ‘?’ (a nil value)
testArray[4].col2 = “testing row 4, col 2”
testArray[4].col3 = “testing row 4, col 3”
As defined, it thinks there are three columns, and appears to reuse the row index until it gets to 4 where it dies with this error: attempt to index field ‘?’ (a nil value)