QB64.org Forum

QB64 Team Software => InForm Discussion => Topic started by: KnotHead on March 01, 2019, 06:27:19 pm

Title: Drop Downs
Post by: KnotHead on March 01, 2019, 06:27:19 pm
I have a drop down inserted to the form and one item showing. Now I need 4 items in the list.

How do I add more items?

Brian.
Title: Re: Drop Downs
Post by: FellippeHeitor on March 01, 2019, 08:23:07 pm
AddItem ListBox1, "New item" 'ListBox1 should be the name you gave to the control you added to your form.

More list methods here: https://github.com/FellippeHeitor/InForm/wiki/List-methods
Title: Re: Drop Downs
Post by: FellippeHeitor on March 01, 2019, 08:25:08 pm
Now, if you want to add more items at design time, then you just separate them using a new line escape sequence (\n), as in Item 1\nItem 2\nItem 3\nEtc...
Title: Re: Drop Downs
Post by: KnotHead on March 01, 2019, 08:29:57 pm
Thank you.