This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Error in the console Error of register
#3
Hi,

This is a non array structured table, so you should use this:

Code:
a = { f1 = 10, f2 = 20 }
for key,value in pairs(a) do
 log(key,value)
end

Check this for explanation of the difference:

The difference between ipairs and pairs

BR,

Erwin
Reply


Messages In This Thread
RE: Error in the console Error of register - by Erwin van der Zwart - 06.09.2017, 17:32

Forum Jump: