Making VB.NET code case insensitive
Posted on 2007-07-30
Using VB.NET, I have following field in my hash table:
Account_Nr and Bankcode.
Now, I later read the values using:
x = htab_Accounts.Item("BankCode")
Now x has value of Nothing. When I did some exploration, I found that because the character case for C in BankCode. Like when I add the field to hastable, I use C in lower case and when I try to read later, I use C in upper case. I do not want my code to be case sensitive. SO I used Tools->Options and set the Option Compare to Text. But still this is not making any difference. Is there any way I can make my code insensitve to char case?