M Mahdi Hamoudi New Member Sep 7, 2014 #1 How to check if a word, written to EditText, exists in a list of words saved in a text file and how to display the result of search on a label like: "The word exists" or " the word does not exist" using a button? Thanks in advance.
How to check if a word, written to EditText, exists in a list of words saved in a text file and how to display the result of search on a label like: "The word exists" or " the word does not exist" using a button? Thanks in advance.
klaus Expert Licensed User Longtime User Sep 7, 2014 #2 You should read your text file into a list. In the Button1_Click event you can check with Index = List1.IndexOf(EditText1.Text), if Index >= 0 then the word exists. Upvote 0
You should read your text file into a list. In the Button1_Click event you can check with Index = List1.IndexOf(EditText1.Text), if Index >= 0 then the word exists.