Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the value in combobox?
Message
De
19/01/2011 04:22:36
 
 
À
18/01/2011 23:58:03
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP
Divers
Thread ID:
01496517
Message ID:
01496530
Vues:
29
>HI, ALL
> My question , i have a combobox, use drop and pop method ,and i set the datasource
>UnitBindingSource..... i want to user entry the combobox , if the database is none , then do something.
>So i want to user entry combobox text to compare combobox all data, how can i do?
>i already try , but not ok
>
>Dim check As Boolean = False
>        For a = 0 To unitcount - 1
>
>            If CmboPkgunit.Text = Trim(CmboPkgunit.Items(a).ToString()) Then
>                check = True
>            End If
>        Next
>
'Where 40 is the display member field length
If CmboPkgunit.FindStringExact(CmboPkgunit.Text.PadRight(40))  <> -1 Then
  check = True
End If
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform