lua-users home
lua-l archive

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


What about adding an "n" field to your table?

print(String)  --> local Table = {}
                   Table[1]={}
                   Table[1][1]=20
                   Table[1][8]=10
                   Table[2]=nil
                   Table[3]=""
                   Table[4]=true
                   Table[5]=false
                   Table.n = 5             --<<<<<<
                   return unpack(Table)

-- Roberto