|
-
Dec 3rd, 2008, 06:34 PM
#1
Thread Starter
Addicted Member
[RESOLVED] listbox items = text
is there a way to check whether any of the listboxes items = a string, say from a textbox? thanks
-
Dec 3rd, 2008, 08:51 PM
#2
Frenzied Member
Re: listbox items = text
listbox.selecteditem.text = textbox.text
-
Dec 3rd, 2008, 08:52 PM
#3
Thread Starter
Addicted Member
Re: listbox items = text
i mean like any of them from the whole list not just the selected item
-
Dec 4th, 2008, 07:38 AM
#4
Frenzied Member
Re: listbox items = text
try something like this:
vb Code:
for i =0 to listbox.items.count
if listbox.items(i).text = textbox.text then
'do something
end if
next
-
Dec 4th, 2008, 04:21 PM
#5
Thread Starter
Addicted Member
-
Dec 8th, 2008, 03:05 PM
#6
Re: listbox items = text
Use ListBox1.Items.FindByText() or .FindByValue().
-
Dec 8th, 2008, 05:23 PM
#7
Thread Starter
Addicted Member
Re: listbox items = text
thanks thats even easier!!
-
Dec 9th, 2008, 03:04 AM
#8
-
Dec 9th, 2008, 04:30 PM
#9
Thread Starter
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|