
07-10-2003, 05:11 PM
|
 |
Junior Contributor
|
|
Join Date: May 2003
Location: Germany
Posts: 246
|
|
checking combobox?
|
hi,
i want to textes to combobox, but i don't want to add the same one. how can i check the items?
i tried to write the code like this :
Code:
Private Function addtocombo(text)
If text = " " Then Exit Function
same = False
For i = 1 To Klartext_Combo.ListCount '<---????
If Klartext_Combo.Item(i) = text Then '<---????
same = True
End If
Next i
If (Not same) Then Klartext_Combo.AddItem (text)
End Function
but it doesn't work....
thx in advance 
|
|