View Full Version : dropdown list

06 June 2011, 12: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)

06 June 2011, 07:26 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?

06 June 2011, 09:08 AM
would this help?
ddlView.selection = (finditem ddlView.items "Popsicle")

CGTalk Moderation
06 June 2011, 09:08 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.