wacy1 Posted May 29, 2007 Posted May 29, 2007 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
GaryFrost Posted May 29, 2007 Posted May 29, 2007 Hi all,I have read a text file containing various lines, some are duplicate but when Itry 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?CheersFrom GUICtrlSetDataRemarksFor 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.
wacy1 Posted May 29, 2007 Author Posted May 29, 2007 From GUICtrlSetDataIf the data going in is the same it won't make a duplicate entry.Thanks thats cleared up that problem.thanks again
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now