Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the value in combobox?
Message
From
19/01/2011 04:22:36
 
 
To
18/01/2011 23:58:03
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Miscellaneous
Thread ID:
01496517
Message ID:
01496530
Views:
28
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform