Notifications
Clear all
[Closed] dropdown list
Jun 01, 2011 1:14 am
How do i search a dropdown list for a variable and if true make it the selected dropdown list item.
dropdownlist ddlView “” width:110 items:(“Donut”,“Nut”,“Popsicle”,“Candy”) pos:[50,28]
on rollout open do
(
if isvalidnode Popsicle do (ddlView.selection Popsicle)
)
2 Replies
Jun 01, 2011 1:14 am
What does isValidNode have to do with a list of strings?
Do you mean it should search for a scene node that has the name of the strings in the list?
Jun 01, 2011 1:14 am
would this help?
ddlView.selection = (finditem ddlView.items "Popsicle")