case insensitive compare???
-
Hi Guys, I am retrieving a field from an Access database and then comparing it to something the user enters looking for a match. However I don't get a match if the case is different. (of course) How do I do a compare that doesnt care about the case??? or how do I change a CString var to all lower case Any help greatly appreciated. Thanks Guys, Tryhard :-)
-
Hi Guys, I am retrieving a field from an Access database and then comparing it to something the user enters looking for a match. However I don't get a match if the case is different. (of course) How do I do a compare that doesnt care about the case??? or how do I change a CString var to all lower case Any help greatly appreciated. Thanks Guys, Tryhard :-)
CString::MakeLower() to make it lower case. Jon Sagara I can't think of anything original to say.
-
Hi Guys, I am retrieving a field from an Access database and then comparing it to something the user enters looking for a match. However I don't get a match if the case is different. (of course) How do I do a compare that doesnt care about the case??? or how do I change a CString var to all lower case Any help greatly appreciated. Thanks Guys, Tryhard :-)
CString::CompareNoCase() might help. Tryharder next time ;p
-
Hi Guys, I am retrieving a field from an Access database and then comparing it to something the user enters looking for a match. However I don't get a match if the case is different. (of course) How do I do a compare that doesnt care about the case??? or how do I change a CString var to all lower case Any help greatly appreciated. Thanks Guys, Tryhard :-)
CString::CollateNoCase - uses current code page for comparisons. Tomasz Sowinski -- http://www.shooltz.com
-
Hi Guys, I am retrieving a field from an Access database and then comparing it to something the user enters looking for a match. However I don't get a match if the case is different. (of course) How do I do a compare that doesnt care about the case??? or how do I change a CString var to all lower case Any help greatly appreciated. Thanks Guys, Tryhard :-)
Look up CString class members. There is one just for this purpose. P.S. Learn to use MSDN. Its ALL in there. Hope this helps, Bill