Arrays or Custom Properties or both
Posted: Thu Mar 29, 2012 9:20 pm
Right, here goes, bear with me...
I have a card, with two buttons on it ButtonL and ButtonR, and a label at the top called MatchLabel which will contain a single digit no. I want that label to match the number on either ButtonL or ButtonR
I have a custom property set up on the card called cNumberPairs which contains:-
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
0 1
2 1
3 1
4 1
5 1
6 1
7 1
8 1
9 1
Etc. and so on, of all the possible number combinations excluding matching pairs.
What I want to happen is, the single digit number will be displayed at the top (I will have a start button) and then when the matching ButtonL or ButtonR are clicked on the label at the top changes to another random single digit number as does ButtonL and ButtonR
I have done some reading around arrays and have managed to get the button labels to change to the first line of the array when the array is sitting on the card in a field below but I don’t want the data to be seen so I have moved it to a custom property on the card.
I am unable to get the data onto the button labels now and have got all confused with arrays and custom properties
are they things you use either one or the other of or do you use them together.
I hope that all made sense
I have a card, with two buttons on it ButtonL and ButtonR, and a label at the top called MatchLabel which will contain a single digit no. I want that label to match the number on either ButtonL or ButtonR
I have a custom property set up on the card called cNumberPairs which contains:-
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
0 1
2 1
3 1
4 1
5 1
6 1
7 1
8 1
9 1
Etc. and so on, of all the possible number combinations excluding matching pairs.
What I want to happen is, the single digit number will be displayed at the top (I will have a start button) and then when the matching ButtonL or ButtonR are clicked on the label at the top changes to another random single digit number as does ButtonL and ButtonR
I have done some reading around arrays and have managed to get the button labels to change to the first line of the array when the array is sitting on the card in a field below but I don’t want the data to be seen so I have moved it to a custom property on the card.
I am unable to get the data onto the button labels now and have got all confused with arrays and custom properties

I hope that all made sense
