Size of table within another table

I have a table that contains other tables as elements.

If I do:

print ("Type: " ..type(mytable.E1.E2.E3))  

I get: “table”

The problem I have is that I know E3 contains a table and I know that that table itself has about 10 elements.

If I do:

print("Size: " ..#mytable.E1.E2.E3)  

I get: “0”

How do I get the number of elements within the table stored in E3? [import]uid: 31718 topic_id: 8023 reply_id: 308023[/import]

I can’t reproduce your problem.
Can you post your whole table definitions?
I’ve tried this:
[lua]t1 = {“a”,“b”}
t1.t2 = {1,2,3}
t1.t2.t3 = {}
t1.t2.t3.t4 = {}
t1.t2.t3.t4.t5 = {1,t1}
print( #t1, #t1.t2, #t1.t2.t3, #t1.t2.t3.t4.t5)[/lua]

Output:

2 3 0 2  

no problem. [import]uid: 42078 topic_id: 8023 reply_id: 28595[/import]