Ace Grünschnabel 10. Mai 2007 #1 Wenn ich folgendes Script mit Lua 5.1.1 ausführe bekomme ich die Meldung "attempt to call a table value": Code: selcols={"col1", "col2"} for key,col in selcols do print(col) end Was ist daran bloß falsch?
Wenn ich folgendes Script mit Lua 5.1.1 ausführe bekomme ich die Meldung "attempt to call a table value": Code: selcols={"col1", "col2"} for key,col in selcols do print(col) end Was ist daran bloß falsch?
D deepthroat Erfahrenes Mitglied 10. Mai 2007 #2 Hi. Probier's mal mit einem Iterator:[lua]selcols={"col1", "col2"} for key,col in ipairs(selcols) do print(col) end[/lua] Gruß
Hi. Probier's mal mit einem Iterator:[lua]selcols={"col1", "col2"} for key,col in ipairs(selcols) do print(col) end[/lua] Gruß