Hi there,
What is the code for ignoring the case of an entry while checking to see if the entry is correct or not... (i.e. in a flashcard program... given definition, asks for the name) I don't want the case of a character to affect whether the answer is correct or not.
Thanks!
Ignoring Case?
Page 1 of 12 Replies - 697 Views - Last Post: 04 November 2011 - 08:24 PM
Replies To: Ignoring Case?
#2
Re: Ignoring Case?
Posted 04 November 2011 - 08:11 PM
Simple way:
If someString.ToLower.Equals(someotherString.ToLower) Then 'it does
#3
Re: Ignoring Case?
Posted 04 November 2011 - 08:24 PM
You can also use:
If someString.Equals(someOtherString, StringComparison.OrdinalIgnoreCase) Then
...
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|