here I record well on each button, but I have twice the same thing with parentheses
If you want help then you should answer the questions…
We are now at post 22 and it seems to be we meanwhile can better understand, what you are trying to do…
It looks like you have a listview to pick currencies. .
The user should pick 2 currencies, the first currency should be stored in Button1, the second currency in Button2, is this correct?
How do we know, which currency is being picked? The currency for button1 or button2?
As already mentioned
Taifun
ok that’s good
1 listview with 2 buttons each button for a currency, I managed to do this, my problem knows that it remains in memory. I managed to do it with 2 listview and 2 buttons, but what I want as already said is 1 listview with 2 buttons (to lighten the app) is to have a smaller program
Answer the questions and show your blocks
Taifun
to choose the currencies click in the list.
in these blocks it works without recording, so what I’m trying to do is missing my last search
you still are using the advanced blocks and did not provide any answers to the questions
Taifun
your question: How do we know which currency is selected? The currency of button1 or button2?
by clicking on button1 the listview opens I choose a currency, then I click on the other button2 and I choose another currency
and when I chose the currency, this one appears on the button
To store the button1 text in TinyDB
TinyDB.StoreValue "Button1"
get T_G_BT1.Text
Same for button2
Taifun
don’t working
the value to store is G_BT1.Text and not the button component
a better tag would be button1… remember, you also like to store button2…
Taifun
we don’t have far, I manage to save currency 1 and currency 2 on each button, but when I reset, I have currency 2 on both buttons
just with one button its working
protip: use a different tag for each button
Taifun
The needed things are,
- Is in the list
- Global variable (make a list of buttons)
- Some logic
When list view after picking
If the listview selection is in the list call tinydb tag list
Then alert user , already it was picked
Else (use local variable)
Ini loc variable to call tinydb tag list, if not found create empty list
Add items to the list (get local list)
Item listview selection.
When screen init
Ini Local variable with 0
For each items in the list call tinydb list
1.Set local variable to get variable +1
2.Set button text of component (select list item list get global buttons list) index (local variable)
text (get item)
may be he can use list of button components in global variable and for each items in the list event to avoid multiple tinydb

don’t working ,it would have been easier if you show me with the blocks, because my English is not always perfect, thank you
Send me this sample aia… let me fix it
Your blocks are so confusing. You’re storing components but want to show the values?
On your last post, you stored 2 Button’s texts. But you’re trying to show the values of two button at one?
You alredy had your final solution… the only error you made was using the same tag to store 2 different values
Unfortunately the other contributions added more confusion into this simple task
Taifun