Reference 1 item in a list.

Avatar

22-10-2008

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

Replies

Avatar

Avatar

pguerett

Avatar

pguerett

pguerett

23-10-2008

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);