Re: Tables?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Tables?
- From: Romulo Bahiense <romulo@...>
- Date: 2005年8月02日 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