lua-users home
lua-l archive

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



On Thursday, June 13, 2002, at 08:53  PM, goldomyer wrote:
I'm having a problem accesing lua tables (multi dimensional).  I can
access a simple table no problem but get nil accessing a table such
as this:

t = {{f="f1", s="s1"}, {f="f2", s="s2"}}

however accessing this type of table i have no problem:

t = {f="f1", s="s1"}

can anyone help or point me in the right direction.

How are you accessing it?

It seems to work for me:

> t = {{f="f1", s="s1"}, {f="f2", s="s2"}}
> print(t[1])
table: 0x1df40
> print(t[1].f)
f1
> print(t[2].f)
f2

Steve