lua-users home
lua-l archive

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


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