Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Reference 1 item in a list.

Avatar

Former Community Member
I'm confused and would appreciate some help. If I have a List Box named myListBox, and it has 3 items, how do I get the value stored in the second item of the list? I can't figure out the syntax.



Thanks,

Jeff
1 Reply

Avatar

Former Community Member
You can use the method getDisplayItem(index), where index is the 0 based index of the items in your list. So in you case to retrieve the 2nd item in the list, the command would be:



myListBox.getDisplayItem(1);