Hello all,
I have a combo box which is being used to display a collection of 22 teams of class type Tm_Team with a 'name' property of type String. The displayRow method returns the team name.
However, when I iterate through the comboBox list and write the listIndex to the output viewer, the maximum listIndex value I get is 20. All 22 teams are displayed in the comboBox. When I start from the first entry and iterate to the last the sequence is as follows:
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,19,20
When I iterate from the last entry to the first, the sequence is as follows:
20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,2,1
Such behaviour causes issues when using methods such as obj = comboBox.itemObject[comboBox.listIndex] where an invalid array index exception is raised.
Could anyone offer any explanation for this behaviour?
Cheers,
Avinash.