hi everyone
i tried to make diffrent action for each item in the combobox
but i found that the action works for all items
need help plz
Professional Software Development Tools
hi everyone
i tried to make diffrent action for each item in the combobox
but i found that the action works for all items
need help plz
You could store some data in the combobox that's specific to the entry and call a function with that information.
yes,
Use the data field to store a function call for eatch item in the combobox
that is actually a were need idea.
I think that you can actually use the data filed to hold small scripts, think there is an exampel somewhere on this forum that shows how to use a combobox as a menu, just can't find it, but I'm sure I've seen it somewhere...
cheers,
Jonas
You could store each's item function in the data field as suggested.
In this case, add this to the On Select script of the combobox:
Code:loadstring(ComboBox.GetItemData(this, ComboBox.GetSelected(this))
Never know what life is gonna throw at you.
(Based on a true story.)