Jump to content

Problem adding non-unique items to comboBox


Recommended Posts

Hi all,

I have read a text file containing various lines, some are duplicate but when I

try and update a ComboBox with the details it doesn't allow duplicates to be added.

eg. 2 lines each with the word AUTOIT on it will only show once in the comboBox after both have been added.

I am using the control as follows:

GUICtrlSetData ($ComboBox1,$Var1)

An ideas as I cannot see any attributes that will modify the comboBox in the way I want?

Cheers

Link to comment
Share on other sites

Hi all,

I have read a text file containing various lines, some are duplicate but when I

try and update a ComboBox with the details it doesn't allow duplicates to be added.

eg. 2 lines each with the word AUTOIT on it will only show once in the comboBox after both have been added.

I am using the control as follows:

GUICtrlSetData ($ComboBox1,$Var1)

An ideas as I cannot see any attributes that will modify the comboBox in the way I want?

Cheers

From GUICtrlSetData

Remarks

For Combo or List control :

If the "data" corresponds to an already existing entry it is set as the default.

If the data going in is the same it won't make a duplicate entry.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...