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?
How about ListView Elements?
And what should happen when you click on one of them?
Is the button text blank until the button is pressed?
BtnNumber.aia (2.3 KB)
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.
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.
....completely different task to your original
BtnText.aia (2.5 KB)
========== OR ===========
BtnText2.aia (2.6 KB)
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.