First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Nov 3 '17

sindy gravatar image

In Lua: when adding your item using

my_subtree:add(VarData,...)

you just assign that to a variable, like

local varDataSubtree = my_subtree:add(VarData,...)

Then, you add the details using

varDataSubtree:add(Detail1,...)
click to hide/show revision 2
No.2 Revision

In Lua: when adding your item using

my_subtree:add(VarData,...)

you just assign that to a variable, like

local varDataSubtree = my_subtree:add(VarData,...)

Then, you add the details using

varDataSubtree:add(Detail1,...)

In C, the concept is the same, only the syntax differs.

click to hide/show revision 3
No.3 Revision

In Lua: when adding your item using

my_subtree:add(VarData,...)

you just assign that to a variable, like

local varDataSubtree = my_subtree:add(VarData,...)

Then, you add the details using

varDataSubtree:add(Detail1,...)

In C, the concept is the same, only the syntax differs.differs. The result of tree:add operation is a subtree which you can populate using the same methods like the basic tree.

click to hide/show revision 4
No.4 Revision

In Lua: when adding your item using

my_subtree:add(VarData,...)

you just assign that to a variable, like

local varDataSubtree = my_subtree:add(VarData,...)

Then, you add the details using

varDataSubtree:add(Detail1,...)

In C, the concept is the same, only the syntax differs. The result of tree:add operation is a subtree which you can populate using the same methods like the basic tree.