Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matching text regardless of case

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
I am trying to compare two controls if they match I will throw up an error. The problem is, if the case does not match of course the error won't show.

very simple

select case txt1.text
case = txt2.text
show error
end select


how can I ignore the case and just check the control for the same spelling?

Thanks

 
Try

Code:
select case txt1.text.toupper
case = txt2.text.toupper
show error
end select
 
LOL, I'd pay big money to see you "throw up an error"! Sorry, I couldn't resist.

You want "txt1.Text.ToUpper()"

Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top