listbox problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

i am getting this error when check the list item. below is the error message
and code i am using.

this line i am getting error..

If Trim(cmbGroupNo.Items.Item(j))....

error:
BC30311: Value of type 'System.Web.UI.WebControls.ListItem' cannot be
converted to 'String'.

code:

For j = 0 To cmbGroupNo.Items.Count - 1
If Trim(cmbGroupNo.Items.Item(j)) = Trim(Mid(GroupN(i), 1, InStr(1,
GroupN(i), " "))) Then
blndup = True
Exit For
End If
next
 
Hi

Thanks for the reply.i tried this way..it also working fine.

cmbGroupNo.Items.Item(j).text

thanks
bala
 
Back
Top