Hi there everyone!
I am working on a numbers program for students. I have a simple textbox search that I put numbers in only.
MY textbox is called SearchTXT.text. I also have a listbox called list1 that has all of the possible numbers that can be searched for. I was wondering if I enter a number for ex: 31 in the textbox, and press a command button, is it possible to search for any matches that have the same last digit? For example, 31 has 1 as its last digit, so if there was a number like 11, it could go in list2 because it has the same last digit, 21 could go too, and I would like 1 to go in there, but since 1 is a single digit number, would that work too?
So basically I am trying to figure out how to get matches based on looking for the last digit of the number in the SearchTXT, and all matches goes in list2.
Would anyone have experience looking for last digits?
Thanks!
I am working on a numbers program for students. I have a simple textbox search that I put numbers in only.
MY textbox is called SearchTXT.text. I also have a listbox called list1 that has all of the possible numbers that can be searched for. I was wondering if I enter a number for ex: 31 in the textbox, and press a command button, is it possible to search for any matches that have the same last digit? For example, 31 has 1 as its last digit, so if there was a number like 11, it could go in list2 because it has the same last digit, 21 could go too, and I would like 1 to go in there, but since 1 is a single digit number, would that work too?
So basically I am trying to figure out how to get matches based on looking for the last digit of the number in the SearchTXT, and all matches goes in list2.
Would anyone have experience looking for last digits?
Thanks!