I am at a loss here, I’m trying to figure out what seemed like a simple issue, but can’t seem to figure it out.
local myTable = {}
myTable[1].ID = 0
Even if I add some objects to the table, I cannot seem to insert to the table past the first dimension. If I use table.insert() it works fine, but that’s not efficient.
If I create an object first, like:
myObject.ID = 10
Then set myTable[1] = myObject, it works fine, and that’s how I typically do it anyway, but I am curious why I can’t seem to use [x]. or [x][x] syntax. [import]uid: 160288 topic_id: 33323 reply_id: 333323[/import]
