How to wipe or reset a table in Lua -


how go wiping or resetting table in lua. want make blank table in end.

you iterate on keys , make them nil.

for k,v in pairs(t)   t[k] = nil end 

if it's array remove values table.remove()


Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

Disabling Android home button for industry application -

asp.net mvc 3 - Unexpected "foreach" keyword after "@" character -