Hi everyone,
I have to create 70 buttons that when pressed put a 1 in the text of the first button, a 2 in the text of the second and so on, can I do it with a for or a while or do I have to create 70 events?
Thanks.
Why buttons?
How about ListView Elements?
And what should happen when you click on one of them?
P.S. See
Is the button text blank until the button is pressed?
Thanks, I will try it.
You can copy-paste the Horizontal Arrangement - this creates the next 5 buttons and so on.
I'm going to explain myself better. I would like to put the text of 5 buttons from the elements of a list. If the list has elements a,b,c,d,e, those letters appear in the button text.
Thanks.
Can you show us step by step?
There are two kinds of FOR EACH loop blocks.
- one of them loops over each item in a list
- the other loops over numbers from 1 to some other number.
You need the second kind of loop.
Use it with an index number from 1 to the length of list of your button list.
(If your lists have different lengths, use the shorter length.)
Use the SET ANY BUTTON.TEXT block with SELECT LIST ITEM blocks
for the getting and setting sides.
Sample project:
....completely different task to your original
Gracias.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.