Notifications
Clear all
[Closed] dropdownlist – how to grow
Jan 31, 2011 8:43 am
Hi,
I have a dropdown list which is empty, now I also have a edittext field and OK button.
what i want is whenever user input text in text field and press OK button it will add / append the string to the dropdownlist and grow it as many time user enters and hits ok button, is it possible?
1 Reply
Jan 31, 2011 8:43 am
Hope this info helps.
--create a array
myArray = #()
--then in button press do:
on button press do(
--fill in item to array
append myArray Textbox.text
--tell dropdown to use the new array items.
dropdodown.items = myArray
)