Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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 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.

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.

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.