PDA

View Full Version : dropdownlist - how to grow


bkravi
01-31-2011, 08: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?

stigatle
01-31-2011, 12:49 PM
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
)

CGTalk Moderation
01-31-2011, 12:49 PM
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.