"All component" - Load labels from tinydb list

I am making a counter for a class which holds a name and count next to it as sown here

The administrator uses the + and - to add or subtract from the count per name.
The tinydb will then save a string into "currentdate" with value "lblname1,lblname2", the same happens for the count value.

I need to extract the string out the database and the break it up per name or count and set it into its label. This is how far I have got. Need help going further.

I don't know how to find the index in the list to be able to assign it to the right label.

you need a list of the label components and a counter variable, which provides the index of the current label, just increment the index inside the for each item in list loop

see also How to work with the advanced features

Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.