I would like to store the last value of a component like Switch (for example) in a database.
For that, I have to use TinyDB.Store Value method.
To simplify, I would like to use component name as tag in which I will save the value.
It will allow to use Any Switch Method for all my Switch.
The problem is that Component Name or ID is not text…
Is there any way to obtain the name of a component as a text ?
That’s what I tried but I cannot stick this last block of component to a label.text like the type of data was not OK.
I found a way to do it. It’s to store the component(ID) in a variable and then affect the variable to the text and this time no problem I can stock the block.
It’s quite more complicated and It seems strange that we cannot stick directly the ID to text.
I cannot Stick directly like this
But I can if I use intermediate variable to do it
If you know how to make it directly without variable. I’m interested.