By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,988 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,988 IT Pros & Developers. It's quick & easy.

duplicate entries in combo box

P: 3
iam reading a xml file and adding these value into combo box.The combo box now has duplicate values ,when displaying in combo box i should not display duplicate values .how do i do it?
Dec 3 '07 #1
Share this Question
Share on Google+
4 Replies


Dököll
Expert 100+
P: 2,364
iam reading a xml file and adding these value into combo box.The combo box now has duplicate values ,when displaying in combo box i should not display duplicate values .how do i do it?
Would you like to ad you code here, trips, for a quick look...

Can be a pain solvong these, stay tuned to see what you can gather.

In a bit!
Dec 3 '07 #2

P: 3
Would you like to ad you code here, trips, for a quick look...

Can be a pain solvong these, stay tuned to see what you can gather.

In a bit!
I want the answer in Visual Basics 6 not VB.net please
Dec 3 '07 #3

lotus18
100+
P: 866
I want the answer in Visual Basics 6 not VB.net please
Hi trips

Can you show us what have you done so far? So that we'll try to bring out the solution to your problem : )

Rey Sean
Dec 3 '07 #4

P: 3
Hi trips

Can you show us what have you done so far? So that we'll try to bring out the solution to your problem : )

Rey Sean
Set aXmlNodeList = aXmlDom.documentElement.selectNodes("//Department/Member")
If (aXmlNodeList.length > 0) Then
For ii = 0 To (aXmlNodeList.length - 1)

aValue = aXmlNodeList.Item(ii).selectSingleNode("Role").Tex t
Combo1.AddItem (aValue)

Next
If (Combo1.ListCount > 0) Then
Combo1.Text = Combo1.List(0)
End If
Dec 3 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.