Comparing user entered data to listbox data?? 
Author Message
 Comparing user entered data to listbox data??

Hi-

I have a question about comparing data that is entered by a user (in a textbox)
to values that may or may not already be in a listbox.

For example, if the user enters 'hi' into a textbox and hits a command button, I
want to check to see if 'hi' is already in a listbox.  If it is, do something, if
not, do something else.  

Thanks so much for your help!

-Tara



Mon, 03 Nov 2003 04:07:42 GMT  
 Comparing user entered data to listbox data??
Tara,

Quote:
>>I have a question about comparing data that is entered by a user (in a

textbox)
to values that may or may not already be in a listbox.<<

You can use the ListBox.FindStringExact() method.

--
David.



Mon, 03 Nov 2003 04:34:08 GMT  
 Comparing user entered data to listbox data??
Hi David,

Thanks for your reply.  I am not exactly sure how to use that method.  I looked
it up in the msdn library, but I cannot find it anywhere.  Can you elaborate a
bit for me?  Thanks!

-Tara

Quote:
-----Original Message-----
Tara,

>>I have a question about comparing data that is entered by a user (in a
textbox)
to values that may or may not already be in a listbox.<<

You can use the ListBox.FindStringExact() method.

--
David.

.



Mon, 03 Nov 2003 09:06:22 GMT  
 Comparing user entered data to listbox data??


Hi David,

Thanks for your reply.  I am not exactly sure how to use that method.  I looked
it up in the msdn library, but I cannot find it anywhere.  Can you elaborate a
bit for me?  Thanks!

http://msdn.microsoft.com/library/dotnet/cpref/frlrfsystemwinformslis...



Mon, 03 Nov 2003 11:38:07 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Compare user defined data types

2. enter data in user form item

3. Retain user entered data in template (WD97, NT4)

4. Scrolling flexgrid as user enters data...

5. Form validation while user enters data onto the page before submit question

6. Easiest Way To Ask A User to Enter Several Lines of Data, Written to a File

7. Allowing the user to data enter Label control's Caption property

8. comparing MSChart populated data with original data in variant form

9. Need to enter a tab in word if user entered one while entering the data into Access

10. Using ADO Data Control on User Control as Data Source

11. New data control allows multi-user data access/binding over the web (INFO)

12. New data control allows multi-user data access/binding over the web (INFO)

 

 
Powered by phpBB® Forum Software