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