Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Maybe this (untested) change will help?

-- Dynamically displays the ProtoFields in the subtree
for i = 1, nbOfFields, 1 do
    subtree:add(DataFieldsProto[i], valuesOfFields[i])):set_text(namesOfFields[i] .. ": " .. valuesOfFields[i])
end