How to fill a combobox from enumeration?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Caronte3D
Addict
Addict
Posts: 1056
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

How to fill a combobox from enumeration?

Post by Caronte3D »

Exists a easy way or I must use AddGadgetItem several times?
wombats
Enthusiast
Enthusiast
Posts: 664
Joined: Thu Dec 29, 2011 5:03 pm

Re: How to fill a combobox from enumeration?

Post by wombats »

You can use a loop:

Code: Select all

For i = 0 To 5
  AddGadgetItem(#Gadget, -1 ,"Item " + Str(i))
Next
Post Reply