I am trying to create a for loop to create multiple tables with an incremental index name. I am not thinking straight tonight so the solution eludes me.
for x = 1,10 do
mytable..x = {}
end
That is one of the things I tried but AMS gave me a hard time about the syntax.
Syntax Error: [Location="Intro:Button3", Event "On Click", Line=2]
Error Detail: [`=' expected near `..'] in [mytable .. x = {}]
Any suggestions?
for x = 1,10 do
mytable..x = {}
end
That is one of the things I tried but AMS gave me a hard time about the syntax.
Syntax Error: [Location="Intro:Button3", Event "On Click", Line=2]
Error Detail: [`=' expected near `..'] in [mytable .. x = {}]
Any suggestions?
Comment