Compare string ignorecase

I have a string variable and a textfield component, I want to compare the contents of the string to the textfield.text value and check for equality but I want to ignorecase, so providing the letters are the same I don't care about the case.

if mystring = textfield.text then
 do something;

does anyone know the correct syntax to ignore the case

Thanks

Jake
elschottAsked:
Who is Participating?
 
diniludCommented:
   if SameText(mystring,textfield.text) then
         do something;
0
 
elschottAuthor Commented:
Best advice ever, simple once you know how
0
 
huynhcaokyCommented:
function AnsiCompareText ( const String1, String2 : string ) : Integer; // ignoring case
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.