lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I am inserting some imported events into a Table, looklike it is inserting at the end, is there anyway I can insert at the beginning of Table?.


Yes:

table.insert(t,1,value)

(see http://www.lua.org/manual/5.1/manual.html#5.5)

-joe
 
 
when I reboot the baord, I am importing previous log from a file, but those imported records inserting at the end of table (this table already have some boot info, I need imported event info at the beginning). can I do it?