Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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