Sign in to follow this  
Followers 0
wacy1

Problem adding non-unique items to comboBox

3 posts in this topic

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

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

From GUICtrlSetData

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

Thanks thats cleared up that problem.

thanks again

Share this post


Link to post
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
Sign in to follow this  
Followers 0