How to InsertItem [cell] = data?
Posted: Sun Feb 28, 2016 2:19 pm
I have an empty table:
what i want it to look like in the end is:
But I am creating this list on the fly as needed, and I am planning to use InsertItem and RemoveItem commands to achieve it, but I am having trouble how to actually do it?
For example:
would result in:
I can get it done this way:
But i would rather use insertitem instead, so how do i actually do it the way i am wainting to?
Should be simplest of thing to achieve, but i just cant figure out how to.
Code: Select all
mytable={}Code: Select all
mytable = {
["name1"] = variable1,
["name2"] = variable2
}For example:
Code: Select all
temptable = { ["name1"] = variable1 }
insertitem(mytable, temptable)Code: Select all
mytable = {
{ ["name1"] = variable1 },
{ ["name2"] = variable2 }
}Code: Select all
temptable["name1"] = variable1Should be simplest of thing to achieve, but i just cant figure out how to.