Your Digital Media Has Never Looked So Good

 
neowinston
Topic Author
Posts: 30
Joined: Thu Feb 09, 2017 6:38 am

How to get the string from a selected item in a LabelList?

Thu Aug 24, 2017 7:26 am

I need to get the string from a selected item in a LabelList. From the docs I know that itemSelected gives me the index, but not the string. How do I get the selected string? Thank you!
 
tim_beynart
Posts: 223
Joined: Wed Jul 15, 2015 8:30 am

Re: How to get the string from a selected item in a LabelList?

Thu Aug 24, 2017 11:46 am

I think you need to use the index to look up the value from the LabelList data provider (peudocode, syntax may be wrong)

list.content[index].title
 
neowinston
Topic Author
Posts: 30
Joined: Thu Feb 09, 2017 6:38 am

Re: How to get the string from a selected item in a LabelList?

Fri Sep 08, 2017 12:56 pm

Thank you, Tim! You helped me a lot!
 
User avatar
ackmanx
Posts: 7
Joined: Wed Dec 27, 2017 3:07 pm

Re: How to get the string from a selected item in a LabelList?

Sat Dec 30, 2017 8:19 pm

For future reference of others, the specific code I had to use for your use case was:

m.setList.content.getChild(m.setList.itemSelected).title

Where m.setList was my LabelList.

Who is online

Users browsing this forum: No registered users and 2 guests