[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Tables?
- From: Romulo Bahiense <romulo@...>
- Date: Tue, 02 Aug 2005 13:19:04 -0300
Hi,
Try the following, if I understood your problem correctly.
-- 1)
for name,value in pairs(database) do
print('TableKey:', name, 'TableValue:', value)
end
-- 2)
table.foreach(database, function(name,value) print(name,value) end)
-- 3)
local name,value = next(database)
while name do
print(name, value)
name,value = next(database,name)
end
BTW, search the list about 'serialization'. It may help you.
--rb